Class Display
- java.lang.Object
-
- ptolemy.data.ontologies.OntologyAdapter
-
- ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
-
- ptolemy.data.ontologies.lattice.adapters.defaultAdapters.actor.lib.gui.Display
-
public class Display extends LatticeOntologyAdapter
The default adapter class for ptolemy.actor.lib.gui.Display. This adapter does not add any constraints, but rather removes the actor's title attribute since it is only relevant to the graphical output display and should not be included in the ontology analysis. This is necessary for running ontology solver regression test models that contain Display actors that are run with all graphical classes filtered out and replaced with Discard actors that do not have a title attribute.- 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 Display(LatticeOntologySolver solver, Display actor)
Construct a default lattice ontology adapter for the Display actor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Attribute>
_getPropertyableAttributes()
Return the list of property-able Attributes by calling the super class method.-
Methods inherited from class ptolemy.data.ontologies.lattice.LatticeOntologyAdapter
_addDefaultConstraints, _addSubAdapterConstraints, _annotationEvaluator, _constrainAttributes, _constrainObject, _constrainObjectLists, _constrainSingleObject, _getConstrainedPorts, _getConstraintingPorts, _getSubAdapters, _setConnectionConstraintType, _union, constraintList, getPropertyTerm, getSolver, isConstraintSource, reinitialize, setAtLeast, setAtMost, setSameAs
-
Methods inherited from class ptolemy.data.ontologies.OntologyAdapter
_getASTNodeAdapters, _getAttributeParseTrees, _getSinkPortList, _getSourcePortList, getComponent, getContainerEntity, getName, getParseTree, getPropertyables, putAttribute, setComponent, setEquals, toString
-
-
-
-
Constructor Detail
-
Display
public Display(LatticeOntologySolver solver, Display actor) throws IllegalActionException
Construct a default lattice ontology adapter for the Display actor.- Parameters:
solver
- The given solver.actor
- The given Display actor.- Throws:
IllegalActionException
- If the adapter cannot be initialized.
-
-
Method Detail
-
_getPropertyableAttributes
protected java.util.List<Attribute> _getPropertyableAttributes()
Return the list of property-able Attributes by calling the super class method. For the Display actor, remove the title attribute since by default they should not be evaluated by the ontology solver.- Overrides:
_getPropertyableAttributes
in classOntologyAdapter
- Returns:
- The list of property-able Attributes.
-
-