Class ConstraintsCalculator

    • Field Detail

      • minDistance

        public TypedIOPort minDistance
        The minimum distance to the robot team.
      • distToTarget

        public TypedIOPort distToTarget
        The distance to the target.
      • targetLocation

        public TypedIOPort targetLocation
        The target location. Particles input that accepts an array of record tokens. One field of the record must be labeled as "weight". Other fields will be resolved to state variables.
      • locations

        public TypedIOPort locations
        The locations.
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        Description copied from class: NamedObj
        React to a change in an attribute. This method is called by a contained attribute when its value changes. In this base class, the method does nothing. In derived classes, this method may throw an exception, indicating that the new attribute value is invalid. It is up to the caller to restore the attribute to a valid value if an exception is thrown.
        Overrides:
        attributeChanged in class NamedObj
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the change is not acceptable to this container (not thrown in this base class).