public class ProductLatticeOntologyAdapter extends LatticeOntologyAdapter
| Red (cshelton) |
| Red (cshelton) |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<LatticeOntologyAdapter> |
_tupleAdapters
The list of adapters for the model component for each ontology that
comprises the product lattice ontology.
|
_ownConstraints, _subAdapterConstraints, _useDefaultConstraints, interconnectConstraintType_annotationEvaluator, _solver| Constructor and Description |
|---|
ProductLatticeOntologyAdapter(ProductLatticeOntologySolver solver,
java.lang.Object component)
Construct the product lattice ontology adapter associated with the given
component and product lattice ontology solver.
|
ProductLatticeOntologyAdapter(ProductLatticeOntologySolver solver,
java.lang.Object component,
boolean useDefaultConstraints)
Construct the product lattice ontology adapter for the given component and
product lattice ontology solver.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addConstraintsFromTupleOntologyAdapter(java.util.List<Inequality> constraints,
Ontology sourceOntology,
LatticeOntologyAdapter productLatticeOntologyAdapter)
Create constraints for the ProductLatticeOntologyAdapter that are
derived from the given component LatticeOntologyAdapter.
|
java.util.List<Inequality> |
constraintList()
Return the constraints of this component.
|
static Concept |
getComponentConceptFromProductLatticeConcept(Concept productLatticeConcept,
Ontology componentOntology)
Return the component concept value for the specified ontology from the
given product lattice concept.
|
static Concept |
getDerivedConceptForProductLattice(Concept concept,
ProductLatticeOntology productOntology)
Get the derived concept for a product lattice ontology from the given
concept that is an element in one of the ontologies that comprises
the product ontology.
|
java.util.List<java.lang.Object> |
getPropertyables()
Return a list of property-able objects contained by
the component.
|
static java.util.List<LatticeOntologyAdapter> |
getTupleAdapters(ProductLatticeOntologySolver solver,
java.lang.Object component)
Return the adapters for each tuple ontology that comprises the
product lattice ontology for this solver and model component.
|
_addDefaultConstraints, _addSubAdapterConstraints, _annotationEvaluator, _constrainAttributes, _constrainObject, _constrainObjectLists, _constrainSingleObject, _getConstrainedPorts, _getConstraintingPorts, _getSubAdapters, _setConnectionConstraintType, _union, getPropertyTerm, getSolver, isConstraintSource, reinitialize, setAtLeast, setAtMost, setSameAs_getASTNodeAdapters, _getAttributeParseTrees, _getPropertyableAttributes, _getSinkPortList, _getSourcePortList, getComponent, getContainerEntity, getName, getParseTree, putAttribute, setComponent, setEquals, toStringjava.util.List<LatticeOntologyAdapter> _tupleAdapters
public ProductLatticeOntologyAdapter(ProductLatticeOntologySolver solver, java.lang.Object component) throws IllegalActionException
solver - The specified product lattice-based ontology solver.component - The associated component.IllegalActionException - Thrown if the adapter cannot be
initialized.public ProductLatticeOntologyAdapter(ProductLatticeOntologySolver solver, java.lang.Object component, boolean useDefaultConstraints) throws IllegalActionException
solver - The specified product lattice-based ontology solver.component - The given component.useDefaultConstraints - Indicate whether this adapter uses the
default actor constraints.IllegalActionException - Thrown if the adapter cannot be
initialized.public java.util.List<Inequality> constraintList() throws IllegalActionException
constraintList in class LatticeOntologyAdapterIllegalActionException - Thrown if there is a problem creating
the constraints.public java.util.List<java.lang.Object> getPropertyables()
getPropertyables in class OntologyAdapterpublic static void addConstraintsFromTupleOntologyAdapter(java.util.List<Inequality> constraints, Ontology sourceOntology, LatticeOntologyAdapter productLatticeOntologyAdapter) throws IllegalActionException
constraints - The list of constraints from the original LatticeOntologyAdapter.sourceOntology - The ontology over which the original constraints
from the LatticeOntologyAdapter are defined.productLatticeOntologyAdapter - The ProductLatticeOntologyAdapter
for which we create new constraints.IllegalActionException - Thrown if there is an error creating
the new constraints.public static Concept getComponentConceptFromProductLatticeConcept(Concept productLatticeConcept, Ontology componentOntology) throws IllegalActionException
RecordConcept of ProductLatticeConcepts,
which requires special handling beyond what is done in
ProductLatticeConcept.getComponentConceptValue(Ontology).productLatticeConcept - The ProductLatticeConcept or RecordConcept
of ProductLatticeConcepts from which to getcomponentOntology - The component ontology of the product lattice
ontology from which the return concept should be taken.IllegalActionException - Thrown if there is a problem retrieving
the component concept, or if productLatticeConcept is not an
instance of ProductLatticeConcept or RecordConcept.public static Concept getDerivedConceptForProductLattice(Concept concept, ProductLatticeOntology productOntology) throws IllegalActionException
concept - The given concept that must be from an ontology that comprises
the given product lattice ontology.productOntology - The given product lattice ontology.IllegalActionException - Thrown if the concept's ontology is not
part of the given product lattice ontology.public static java.util.List<LatticeOntologyAdapter> getTupleAdapters(ProductLatticeOntologySolver solver, java.lang.Object component) throws IllegalActionException
solver - The ProductLatticeOntologySolver for this adapter.component - The model component object for this adapter.IllegalActionException - Thrown if there is an error in initializing
the tuple ontology adapters.