| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A pattern performing special kinds of actions upon an object (objects).
A behavior of a pattern is defined by its properties set. Method getProperties returns
PropertyMap instance containing a set of all the properties for this pattern.
Every pattern has a SciPatternProperty.PATTERN_CATEGORY property which indicates
a kind of an object this pattern is applicable to. The possible categories are defined
in SciPatternCategory interface.
A pattern has an apply method which makes the pattern perform desired actions, and method
canApply which checks whether the pattern can be applied to the target object (objects)
with the current values of pattern's properties.
prepare method checks if it is possible at all to apply this pattern
to the target object (objects) and
makes some start-up preparations for the pattern. It returns true if everything is okay,
and false if the pattern cannot be applied to the target object (objects) at all.
| Method Summary | |
void | apply()Makes this pattern perform desired actions upon a target object (objects). |
boolean | canApply()Checks whether this pattern can be applied to the target object (objects) with the current values of properties. |
PropertyMap | getProperties()Returns PropertyMap containing all properties for this pattern. |
boolean | prepare()Checks if it is possible at all to apply this pattern to the target object (objects) and makes some start-up preparations for this pattern. |
| Method Detail |
public void apply()
public boolean canApply()
true if this pattern can be applied to the target object (objects) with
public PropertyMap getProperties()
PropertyMap containing all properties for this pattern.PropertyMap containing all properties for this patternpublic boolean prepare()
true if everything is okay,
false if this pattern cannot be applied to the target object (objects) at all
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||