Class Const


  • public class Const
    extends LatticeOntologyAdapter
    The default adapter class for ptolemy.actor.lib.Const.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Method Detail

      • constraintList

        public java.util.List<Inequality> constraintList()
                                                  throws IllegalActionException
        Return the list of constraints for the Const actor. The only constraint specified is that the ontology concept applied to the output port of the actor must be greater than or equal to the concept applied to the value held by the actor.
        Overrides:
        constraintList in class LatticeOntologyAdapter
        Returns:
        The list of constraints for this adapter.
        Throws:
        IllegalActionException - If there is an error creating the constraint list.
      • getPropertyables

        public java.util.List<java.lang.Object> getPropertyables()
        Return a list of property-able NamedObj contained by the component. All ports and parameters are considered property-able. For the Const actor, remove the trigger port since it by default they should not be evaluated by the ontology solver.
        Overrides:
        getPropertyables in class OntologyAdapter
        Returns:
        The list of property-able named object.
      • _getPropertyableAttributes

        protected java.util.List<Attribute> _getPropertyableAttributes()
        Return the list of property-able Attributes by calling the super class method. For the Const actor, remove the firingCountLimit and NONE attributes since by default they should not be evaluated by the ontology solver.
        Overrides:
        _getPropertyableAttributes in class OntologyAdapter
        Returns:
        The list of property-able Attributes.