Interface IntervalObject
-
- All Superinterfaces:
DataObject,PropertyHandler
- All Known Implementing Classes:
IntervalObjectImpl
public interface IntervalObject extends DataObject
An IntervalObject contains two totally orderedAtomicClasses. These values are the upper and lower bound of the interval.A detailed description can be found in the
IntervalClass.- Author:
- Rainer Maximini
- See Also:
IntervalClass
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPONENTComponent: "cake.data.objects" (LogComponentIdentifier.COMPONENT)static StringCOMPONENT_KEYComponent-Key: "24" (LogComponentIdentifier.COMPONENT_KEY_INTERVALOBJECT)static StringLOG_UNCOMPARABLE_OBJECTSThe objects in this class are uncomparable.static StringLOG_WRONG_ELEMENT_TYPEThe new boundary's element-type does not match the element type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntervalClassgetIntervalClass()AtomicObjectgetLowerBound()AtomicObjectgetUpperBound()booleanincludes(AtomicObject valueToCheck)voidsetBounds(AtomicObject lowerBound, AtomicObject upperBound)Sets the bound of the interval.-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, copy, getDataClass, getId, getModel, hasClassName, hasSameValueAsIn, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
-
-
-
Field Detail
-
COMPONENT
static final String COMPONENT
Component: "cake.data.objects" (LogComponentIdentifier.COMPONENT)- See Also:
- Constant Field Values
-
COMPONENT_KEY
static final String COMPONENT_KEY
Component-Key: "24" (LogComponentIdentifier.COMPONENT_KEY_INTERVALOBJECT)- See Also:
- Constant Field Values
-
LOG_UNCOMPARABLE_OBJECTS
static final String LOG_UNCOMPARABLE_OBJECTS
The objects in this class are uncomparable.- Component:
COMPONENT - Key: "2401"
- this
- Object 1:
DataObject - Object 2:
DataObject
- See Also:
- Constant Field Values
- Component:
-
LOG_WRONG_ELEMENT_TYPE
static final String LOG_WRONG_ELEMENT_TYPE
The new boundary's element-type does not match the element type.- See Also:
- Constant Field Values
-
-
Method Detail
-
getIntervalClass
IntervalClass getIntervalClass()
-
getLowerBound
AtomicObject getLowerBound()
-
getUpperBound
AtomicObject getUpperBound()
-
includes
boolean includes(AtomicObject valueToCheck) throws UncomparableObjectsException
- Parameters:
valueToCheck- The value that has to be checked.- Returns:
trueif thevalueToCheckis before the upper bound and after the lower bound.- Throws:
UncomparableObjectsException
-
setBounds
void setBounds(AtomicObject lowerBound, AtomicObject upperBound) throws InvalidTypeException
Sets the bound of the interval. The bounds are automatically ordered.- Parameters:
lowerBound- The lower bound of the interval.upperBound- The upper bound of the interval.- Throws:
InvalidTypeException
-
-