C
- The type of the concepts that form the range of this mapping.public abstract class MapTypeInfiniteConcept<C extends Concept> extends InfiniteConcept
Red (blickly) |
Red (blickly) |
Entity.ContainedObjectsIterator
isAcceptable
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Modifier | Constructor and Description |
---|---|
protected |
MapTypeInfiniteConcept(Ontology ontology)
Create a new MapTypeInfiniteConcept contained in the given ontology.
|
protected |
MapTypeInfiniteConcept(Ontology ontology,
C defaultConcept)
Create a new MapTypeInfiniteConcept contained in the given ontology,
with the given default concept.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<java.lang.String> |
_combinedKeys(MapTypeInfiniteConcept<C> otherConcept)
Return the string keys in either this or the given map concept.
|
protected java.util.Set<java.lang.String> |
_commonKeys(MapTypeInfiniteConcept<C> otherConcept)
Return the string keys common to this and the given map concept.
|
protected java.util.Collection<C> |
_values()
Get the set of all entries referred to by this map concept.
|
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.
|
C |
getConcept(java.lang.String key)
Get the concept contained by at the given key in this map concept,
or the default value if the key is not contained in this map concept.
|
int |
hashCode()
Return the hash code of this map concept, which is uniquely
determined by the ontology and the set of key-concept mappings.
|
java.util.Set<java.lang.String> |
keySet()
Get the set of all keys referred to by this map concept.
|
void |
putConcept(java.lang.String key,
C concept)
Set the specified key of this map to the given concept value.
|
java.lang.String |
toString()
Return the string representation of this map concept.
|
compare, getRepresentative, greatestLowerBound, leastUpperBound
getAssociatedObject, getColor, 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, workspace
finalize, getClass, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, propagateValue
description, getDisplayName, getFullName, getName, getName
protected MapTypeInfiniteConcept(Ontology ontology, C defaultConcept) throws IllegalActionException, NameDuplicationException
ontology
- The containing ontology.defaultConcept
- The concept value mapped to by all keys not
contained in this map.NameDuplicationException
- Not thrown.IllegalActionException
- If the base class throws it.protected MapTypeInfiniteConcept(Ontology ontology) throws IllegalActionException, NameDuplicationException
ontology
- The containing ontology.NameDuplicationException
- Not thrown.IllegalActionException
- If the base class throws it.public boolean equals(java.lang.Object object)
equals
in class InfiniteConcept
object
- An instance of Object.hashCode()
public C getConcept(java.lang.String key)
key
- The key whose concept value we are querying.public java.util.Set<java.lang.String> keySet()
public int hashCode()
hashCode
in class InfiniteConcept
Object.hashCode()
public void putConcept(java.lang.String key, C concept)
key
- The key whose concept value we are setting.concept
- The concept value of the given key.getConcept(String)
public java.lang.String toString()
protected java.util.Set<java.lang.String> _commonKeys(MapTypeInfiniteConcept<C> otherConcept)
otherConcept
- The other map concept.protected java.util.Set<java.lang.String> _combinedKeys(MapTypeInfiniteConcept<C> otherConcept)
otherConcept
- The other map concept.protected java.util.Collection<C> _values()