public class ProductLatticeOntology extends Ontology
Red (cshelton) |
Red (cshelton) |
CompositeEntity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
latticeOntologies
The parameter that holds the user-specified array of ontologies from
which the product lattice ontology is derived.
|
_graph, _graphVersion
_levelCrossingLinks
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ProductLatticeOntology(CompositeEntity container,
java.lang.String name)
Create a new ProductLatticeOntology with the specified container and
the specified name.
|
ProductLatticeOntology(Workspace workspace)
Create a new ProductLatticeOntology with no container or name.
|
Modifier and Type | Method and Description |
---|---|
protected ConceptGraph |
_buildConceptGraph()
Return the graph represented by this ontology.
|
void |
attributeChanged(Attribute attribute)
React to a change in an attribute.
|
Ontology |
getColorOntology()
Return the current ontology from which concepts derive their highlight
color definitions.
|
java.util.List<Ontology> |
getLatticeOntologies()
Return the list of lattice ontologies that comprise the product
lattice ontology.
|
ProductLatticeConcept |
getProductLatticeConceptFromTuple(java.util.List<Concept> conceptTuple)
Return the product lattice concept in this ontology derived from
the specified tuple of concepts.
|
void |
setColorOntology(Ontology colorOntology)
Set the component ontology from which the colors will be derived
for the concepts in this product lattice ontology.
|
getConceptByString, getConceptGraph, getUnacceptableConcepts, isLattice, newRelation
_addEntity, _addRelation, _adjustDeferrals, _containedDecorators, _deepOpaqueEntityList, _description, _exportMoMLContents, _finishedAddEntity, _removeEntity, _removeRelation, _validateSettables, allAtomicEntityList, allowLevelCrossingConnect, classDefinitionList, clone, connect, connect, containedObjectsIterator, deepCompositeEntityList, deepEntityList, deepGetEntities, deepNamedObjList, deepOpaqueEntityList, deepRelationSet, entityList, entityList, exportLinks, exportMoML, getAttribute, getEntities, getEntity, getPort, getRelation, getRelations, isAtomic, isOpaque, lazyAllAtomicEntityList, lazyAllCompositeEntityList, lazyAllCompositeTransparentAndOpaqueEntityList, lazyClassDefinitionList, lazyDeepEntityList, lazyEntityList, lazyRelationList, numberOfEntities, numberOfRelations, numEntities, numRelations, relationList, removeAllEntities, removeAllRelations, setClassDefinition, setContainer, statistics, uniqueName
_checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, newPort, propagateExistence, setName
_addPort, _removePort, connectedPortList, connectedPorts, connectionsChanged, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts
_setParent, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, 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, toString, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, propagateValue
description, getDisplayName, getFullName, getName, getName
public Parameter latticeOntologies
public ProductLatticeOntology(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
container
- The container.name
- The name for the ontology.NameDuplicationException
- If the container already contains an
ontology with the specified name.IllegalActionException
- If the base class throws it.public ProductLatticeOntology(Workspace workspace) throws IllegalActionException
workspace
- The workspace into which to put it.IllegalActionException
- If the base class throws it.public void attributeChanged(Attribute attribute) throws IllegalActionException
ProductLatticeConcept
s is generated
based on the array of Ontologies contained in that parameter.attributeChanged
in class NamedObj
attribute
- The attribute that changed.IllegalActionException
- If the product lattice concepts
cannot be generated.public Ontology getColorOntology()
setColorOntology(Ontology)
public ProductLatticeConcept getProductLatticeConceptFromTuple(java.util.List<Concept> conceptTuple) throws IllegalActionException
conceptTuple
- The list of concepts from which to create a
product lattice concept in this ontology.IllegalActionException
- Thrown if the input list of concepts is
not composed of concepts from the component ontologies of this
product lattice ontology.public java.util.List<Ontology> getLatticeOntologies() throws IllegalActionException
IllegalActionException
- If the latticeOntologies parameter does
not return an array token that contains the ontology objects, or
at least one of the specified component ontologies is not a lattice.public void setColorOntology(Ontology colorOntology) throws IllegalActionException
colorOntology
- The specified ontology to use for the color
definitions for each product lattice concept. Or null if the concepts
should have no color highlighting.IllegalActionException
- Thrown if the specified ontology is not
part of the product lattice ontology.getColorOntology()
protected ConceptGraph _buildConceptGraph()
ProductLatticeCPO
._buildConceptGraph
in class Ontology