|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.base.CompositionRule
This class is used to group the entity composition rules that correspond to the same component entities It acts as a group of counters
Field Summary | |
protected int |
max
The maximum number of uses of the component entity established by the rule |
protected int |
min
The minimum number of uses of the component entity established by the rule |
protected int |
used
The number of uses of the component entity in the instance |
Constructor Summary | |
CompositionRule()
This method constructs a CompositionRule object with no allowed occurrences of component entity |
|
CompositionRule(char modifier)
This method constructs a CompositionRule object initialized with a rule |
Method Summary | |
void |
addModifier(char modifier)
This method adds a rule increasing the corresponding counters |
java.lang.String |
check()
This method checks the correctness of the instance components count based on rule |
int |
getMax()
Returns the maximum number of ocurrences |
int |
getMin()
Returns the minimum number of ocurrences |
void |
increaseUsed()
This method counts a new use of an entity in the composition of an instance |
void |
initialize()
This method initilizes the counting for checking an instance composition |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int used
protected int min
protected int max
Constructor Detail |
public CompositionRule()
public CompositionRule(char modifier)
modifier
- charMethod Detail |
public void addModifier(char modifier)
modifier
- charpublic java.lang.String check()
public int getMax()
public int getMin()
public void increaseUsed()
public void initialize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |