Package ptolemy.data.ontologies.lattice
Class ProductLatticeOntologyCompositeAdapter
- java.lang.Object
-
- ptolemy.data.ontologies.OntologyAdapter
-
- ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
-
- ptolemy.data.ontologies.lattice.LatticeOntologyCompositeAdapter
-
- ptolemy.data.ontologies.lattice.ProductLatticeOntologyCompositeAdapter
-
public class ProductLatticeOntologyCompositeAdapter extends LatticeOntologyCompositeAdapter
A product lattice-based ontology adapter for composite actors whose constraints are derived from the component ontology solvers.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Charles Shelton
- Pt.AcceptedRating:
- Red (cshelton)
- Pt.ProposedRating:
- Red (cshelton)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
_ownConstraints, _subAdapterConstraints, _useDefaultConstraints, interconnectConstraintType
-
Fields inherited from class ptolemy.data.ontologies.OntologyAdapter
_annotationEvaluator, _solver
-
-
Constructor Summary
Constructors Constructor Description ProductLatticeOntologyCompositeAdapter(ProductLatticeOntologySolver solver, CompositeEntity component)
Construct the product lattice ontology adapter associated with the given composite actor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_addInterConnectionConstraints()
Add all the constraints between actors inside the composite actor referenced by this adapter.java.util.List<Inequality>
constraintList()
Return the constraints of this component.-
Methods inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyCompositeAdapter
_addDefaultConstraints, _getSubAdapters
-
Methods inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
_addSubAdapterConstraints, _annotationEvaluator, _constrainAttributes, _constrainObject, _constrainObjectLists, _constrainSingleObject, _getConstrainedPorts, _getConstraintingPorts, _setConnectionConstraintType, _union, getPropertyTerm, getSolver, isConstraintSource, reinitialize, setAtLeast, setAtMost, setSameAs
-
Methods inherited from class ptolemy.data.ontologies.OntologyAdapter
_getASTNodeAdapters, _getAttributeParseTrees, _getPropertyableAttributes, _getSinkPortList, _getSourcePortList, getComponent, getContainerEntity, getName, getParseTree, getPropertyables, putAttribute, setComponent, setEquals, toString
-
-
-
-
Constructor Detail
-
ProductLatticeOntologyCompositeAdapter
public ProductLatticeOntologyCompositeAdapter(ProductLatticeOntologySolver solver, CompositeEntity component) throws IllegalActionException
Construct the product lattice ontology adapter associated with the given composite actor.- Parameters:
solver
- The product lattice-based ontology solver for this adapter.component
- The given composite actor.- Throws:
IllegalActionException
- Thrown if the adapter cannot be created.
-
-
Method Detail
-
constraintList
public java.util.List<Inequality> constraintList() throws IllegalActionException
Return the constraints of this component. The constraints is a list of inequalities. The constraints are generated from the component ontology constraint lists.- Overrides:
constraintList
in classLatticeOntologyCompositeAdapter
- Returns:
- The constraints of this component.
- Throws:
IllegalActionException
- Thrown if there is a problem creating the constraints.
-
_addInterConnectionConstraints
protected void _addInterConnectionConstraints() throws IllegalActionException
Add all the constraints between actors inside the composite actor referenced by this adapter. In this derived class for ProductLatticeOntologies this method does nothing because the ProductLatticeOntologyAdapter's constraints are generated by composing the constraints of the component LatticeOntologyAdapters.- Overrides:
_addInterConnectionConstraints
in classLatticeOntologyCompositeAdapter
- Throws:
IllegalActionException
- Not thrown in this derived class.
-
-