Class HDFFSMDirector

    • Constructor Detail

      • HDFFSMDirector

        public HDFFSMDirector​(CompositeEntity container,
                              java.lang.String name)
                       throws IllegalActionException,
                              NameDuplicationException
        Construct a director in the given container with the given name. The container argument must not be null, or a NullPointerException will be thrown. If the name argument is null, then the name is set to the empty string. Increment the version number of the workspace.
        Parameters:
        container - Container of the director.
        name - Name of this director.
        Throws:
        IllegalActionException - If the name has a period in it, or the director is not compatible with the specified container.
        NameDuplicationException - If the container is not a CompositeActor and the name collides with an entity in the container.
    • Method Detail

      • getContext

        public Entity getContext()
        Return the change context being made explicit. This class overrides the implementation in the FSMDirector base class to report that modal models using HDFFSMDirector only make state transitions between toplevel iterations.
        Specified by:
        getContext in interface ExplicitChangeContext
        Overrides:
        getContext in class FSMDirector
        Returns:
        The explicit change context.
      • preinitialize

        public void preinitialize()
                           throws IllegalActionException
        Preinitialize the modal model. Set the _sendRequest flag to be true to indicate the modal model can send a change request to the manager.
        Specified by:
        preinitialize in interface Initializable
        Overrides:
        preinitialize in class MultirateFSMDirector
        Throws:
        IllegalActionException - If there is no controller, or if the non-transient initial state has no or more than one refinement, or if the preinitialize() method of one of the associated actors throws it.