|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--arom.util.Interval
|
+--arom.kernel.AromInterval
The AromInterval class represents positive interval of integer which are inherited. This class is used to define role's cardinality as well as multi valued variables. An AromInterval is defined by positive integer bounds and by the AromInterval which is it's ancestor. Undefined bounds means bounds that are inherited from the ancestor interval.
| Field Summary | |
protected AromInterval |
ancestor
|
protected AromAccessor |
owner
|
static Integer |
UNDEF
instance that indicates 'undefined' bounds. |
| Fields inherited from class arom.util.Interval |
lower,
upper |
| Constructor Summary | |
AromInterval(AromAccessor owner)
Construct a new interval owned by the specified accessor. |
|
AromInterval(AromAccessor owner,
AromInterval parent)
Construct a new interval which inherit from the specified ancestor interval. |
|
| Method Summary | |
Object |
clone()
Creates a clone of this interval. |
Integer |
getMaxCard()
Returns the maximum bound of this interval. |
Integer |
getMinCard()
Returns the minimum bounds of this interval. |
void |
setAncestor(AromInterval parent)
Sets a new ancestor interval for this interval. |
void |
setCard(Integer min,
Integer max)
Sets the minimum and the maximum bounds of this interval. |
void |
setMaxCard(Integer max)
Sets the maximum bound of the interval. |
void |
setMinCard(Integer min)
Sets the minimum bound of the interval. |
String |
toString()
Returns a string representation of this interval. |
| Methods inherited from class arom.util.Interval |
contains,
containsValue,
equals,
getLowerBound,
getUpperBound,
quotify,
setBounds,
setLowerBound,
setUpperBound |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static Integer UNDEF
protected AromAccessor owner
protected AromInterval ancestor
| Constructor Detail |
public AromInterval(AromAccessor owner)
owner - the accessor that use this interval.
public AromInterval(AromAccessor owner,
AromInterval parent)
owner - the accessor that use this interval.parent - the interval parent of this interval.| Method Detail |
public void setAncestor(AromInterval parent)
throws AromIllegalSetMultiplicityException
parent - the interval ancestor of this one.
public void setMinCard(Integer min)
throws AromIllegalSetMultiplicityException
min - the new minimum bound.
public void setMaxCard(Integer max)
throws AromIllegalSetMultiplicityException
max - the new maximum bound.
public void setCard(Integer min,
Integer max)
throws AromIllegalSetMultiplicityException
min - the new minimum bound.max - the new maximum bound.public Integer getMinCard()
public Integer getMaxCard()
public Object clone()
public String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||