public abstract class Concept extends ComponentEntity implements InequalityTerm
Note that this is an abstract class. Any concrete instance must be either a FiniteConcept or an InfiniteConcept.
Ontology
,
ConceptGraph
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
isAcceptable
A parameter indicating whether this concept is an acceptable outcome
during inference.
|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
Concept(CompositeEntity ontology,
java.lang.String name)
Create a new concept with the specified name and the specified
ontology.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAssociatedObject()
Return the associated object of this InequalityTerm, which is always
null for concepts.
|
ColorAttribute |
getColor()
Return the color attribute associated with this Concept, if it exists.
|
Ontology |
getOntology()
Return the ontology that contains this concept.
|
java.lang.Object |
getValue()
Return the current value of the InequalityTerm.
|
InequalityTerm[] |
getVariables()
Return an array of variables contained in this InequalityTerm, or in
this case, an empty array.
|
void |
initialize(java.lang.Object object)
Try to initialize the InequalityTerm, or in this case, throw an
exception.
|
boolean |
isAboveOrEqualTo(Concept concept)
Return true if this concept is greater than or equal to the
specified concept in the partial ordering.
|
boolean |
isSettable()
Return whether or not this InequalityTerm is settable.
|
boolean |
isValueAcceptable()
Return whether this concept is a valid inference result.
|
void |
setValue(java.lang.Object value)
Try to set the value of this InequalityTerm, or in this case, just
throw an exception.
|
abstract java.lang.String |
toString()
Return the (unique) string representation of this concept.
|
_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, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, propagateValue
description, getDisplayName, getFullName, getName, getName
public Parameter isAcceptable
public Concept(CompositeEntity ontology, java.lang.String name) throws IllegalActionException, NameDuplicationException
ontology
- The specified ontology where this concept resides.name
- The specified name for the concept.NameDuplicationException
- If the ontology already contains a
concept with the specified name.IllegalActionException
- If the base class throws it.public final java.lang.Object getAssociatedObject()
getAssociatedObject
in interface InequalityTerm
public ColorAttribute getColor() throws IllegalActionException
IllegalActionException
- Not thrown in the base Concept class.public Ontology getOntology()
public final java.lang.Object getValue()
getValue
in interface InequalityTerm
setValue(java.lang.Object)
public final InequalityTerm[] getVariables()
getVariables
in interface InequalityTerm
public final void initialize(java.lang.Object object) throws IllegalActionException
initialize
in interface InequalityTerm
object
- The object used to initialize the InequalityTerm; not used
since a Concept is a static value that cannot be initialized.IllegalActionException
- Always thrown.public boolean isAboveOrEqualTo(Concept concept) throws IllegalActionException
ConceptGraph.compare(Object, Object)
,
which provides more functionality.
See our discussion in our
code review.concept
- The concept to compare.IllegalActionException
- If the specified concept
does not have the same ontology as this one.public final boolean isSettable()
isSettable
in interface InequalityTerm
public boolean isValueAcceptable()
isValueAcceptable
in interface InequalityTerm
public final void setValue(java.lang.Object value) throws IllegalActionException
setValue
in interface InequalityTerm
value
- The Object being passed in to set the value for the
InequalityTerm; not used since a Concept is a static value that
cannot be changed.IllegalActionException
- Always thrown.getValue()