public class FlatTokenInfiniteConcept extends InfiniteConcept
This RecordConcept allows any record to be assigned concept values for its
individual elements from an arbitrary finite ontology. For example, if we
wanted to assign a concept to the token above from the constAbstractInterpretation
ontology, it would be:
{x = Positive, y = Positive, pixelOn = BooleanTrue}
This code is adapted from the
MonotonicityConcept
implementation.
FlatTokenRepresentativeConcept| Red (blickly) |
| Red (blickly) |
Entity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
protected FlatTokenRepresentativeConcept |
_representative
The finite concept that represents where the infinite token concepts belong
in the ontology lattice.
|
protected Token |
_tokenValue
The token value for this FlatTokenInfiniteConcept.
|
isAcceptable_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS| Modifier | Constructor and Description |
|---|---|
protected |
FlatTokenInfiniteConcept(Ontology ontology,
FlatTokenRepresentativeConcept representative,
Token value)
Create a new FlatTokenInfiniteConcept, belonging to the given
ontology.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Concept concept)
Compare this concept with the given concept.
|
static FlatTokenInfiniteConcept |
createFlatTokenInfiniteConcept(Ontology ontology,
FlatTokenRepresentativeConcept representative,
Token value)
Create a new flat token infinite concept, belonging to the given
ontology, with an automatically generated name.
|
boolean |
equals(java.lang.Object object)
Return true if the class of the argument is RecordToken, and
the argument has the same set of labels as this token and the
corresponding fields are equal, as determined by the equals
method of the contained tokens.
|
ColorAttribute |
getColor()
Return the color attribute associated with this FlatTokenInfiniteConcept.
|
FlatTokenRepresentativeConcept |
getRepresentative()
Get the concept that represents this set of infinite concepts in the
ontology lattice.
|
Token |
getTokenValue()
Get the token value contained by this concept.
|
Concept |
greatestLowerBound(Concept concept)
Compute the greatest lower bound (GLB) of this and another concept.
|
int |
hashCode()
Return the hash code of this record concept, which is uniquely
determined by the ontology and the set of record field-concept
mappings.
|
Concept |
leastUpperBound(Concept concept)
Compute the least upper bound (LUB) of this and another concept.
|
java.lang.String |
toString()
Return the string representation of this flat token infinite concept.
|
getAssociatedObject, getOntology, getValue, getVariables, initialize, isAboveOrEqualTo, isSettable, isValueAcceptable, setValue_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, newPort, propagateExistence, setContainer, setName_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, connectionsChanged, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, validateSettables, workspacefinalize, getClass, notify, notifyAll, wait, wait, waitgetDerivedLevel, getDerivedList, propagateValuedescription, getDisplayName, getFullName, getName, getNameprotected FlatTokenRepresentativeConcept _representative
protected Token _tokenValue
protected FlatTokenInfiniteConcept(Ontology ontology, FlatTokenRepresentativeConcept representative, Token value) throws IllegalActionException, NameDuplicationException
ontology - The ontology to which this concept belongs.representative - The finite concept that represents where the infinite
token concepts belong in the ontology lattice.value - The token value for this FlatTokenInfiniteConcept.NameDuplicationException - Should never be thrown.IllegalActionException - If the base class throws it.public static FlatTokenInfiniteConcept createFlatTokenInfiniteConcept(Ontology ontology, FlatTokenRepresentativeConcept representative, Token value) throws IllegalActionException
ontology - The ontology to which this concept belongs.representative - The finite concept that represents where the infinite
token concepts belong in the ontology lattice.value - The token value for this FlatTokenInfiniteConcept.IllegalActionException - If the base class throws it.public int compare(Concept concept) throws IllegalActionException
compare in class InfiniteConceptconcept - The concept with which we are comparing.IllegalActionException - If the specified concept
does not have the same ontology as this one.Concept.isAboveOrEqualTo(ptolemy.data.ontologies.Concept)public boolean equals(java.lang.Object object)
equals in class InfiniteConceptobject - An instance of Object.hashCode()public ColorAttribute getColor() throws IllegalActionException
getColor in class ConceptIllegalActionException - Thrown if there is an error getting the
color from the representative concept.public FlatTokenRepresentativeConcept getRepresentative()
getRepresentative in class InfiniteConceptpublic Token getTokenValue()
public Concept greatestLowerBound(Concept concept)
greatestLowerBound in class InfiniteConceptconcept - The other conceptpublic Concept leastUpperBound(Concept concept)
leastUpperBound in class InfiniteConceptconcept - The other conceptpublic int hashCode()
hashCode in class InfiniteConceptObject.hashCode()