Class ActorHandlerInfo

  • All Implemented Interfaces:
    Serializable

    public class ActorHandlerInfo
    extends Object
    implements Serializable
    Container for information about an ActorHandler.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_CanContainStandalones

        protected boolean m_CanContainStandalones
        whether the actor can contain standalone sub-actors.
      • m_CanContainSource

        protected boolean m_CanContainSource
        whether the actor can contain a source sub-actor.
      • m_CanEncloseActors

        protected boolean m_CanEncloseActors
        whether the actor can be used for enclosing other actors.
      • m_ActorExecution

        protected ActorExecution m_ActorExecution
        how the sub-actors are executed/oriented.
      • m_ForwardsInput

        protected boolean m_ForwardsInput
        whether the actor handler forwards input to the sub-actors.
      • m_Restrictions

        protected Class[] m_Restrictions
        further class/interface restrictions.
    • Constructor Detail

      • ActorHandlerInfo

        public ActorHandlerInfo()
        Initializes the info.
      • ActorHandlerInfo

        public ActorHandlerInfo​(ActorHandlerInfo info)
        Initializes the info with the provided info object.
        Parameters:
        info - the other info object to initialize with
    • Method Detail

      • allowStandalones

        public ActorHandlerInfo allowStandalones​(boolean value)
        Sets whether to allow standalones.
        Parameters:
        value - true if to allow
        Returns:
        itself
      • canContainStandalones

        public boolean canContainStandalones()
        Returns whether standalones are allowed in this group or not.
        Returns:
        true if standalones are allowed
      • allowSource

        public ActorHandlerInfo allowSource​(boolean value)
        Sets whether to allow source.
        Parameters:
        value - true if to allow
        Returns:
        itself
      • canContainSource

        public boolean canContainSource()
        Returns whether a source is allowed in this group or not.
        Returns:
        true if a source is allowed
      • allowEncloseActors

        public ActorHandlerInfo allowEncloseActors​(boolean value)
        Sets whether to allow enclosing of actors.
        Parameters:
        value - true if to allow
        Returns:
        itself
      • canEncloseActors

        public boolean canEncloseActors()
        Returns whether this actor can be used to enclose others.
        Returns:
        true if other actors can be enclose
      • actorExecution

        public ActorHandlerInfo actorExecution​(ActorExecution value)
        Sets how the actors are executed.
        Parameters:
        value - the execution
        Returns:
        itself
      • getActorExecution

        public ActorExecution getActorExecution()
        Returns the how the actors are executed.
        Returns:
        how the actors are executed
      • forwardsInput

        public ActorHandlerInfo forwardsInput​(boolean value)
        Sets whether to actor forwards the input.
        Parameters:
        value - true if it forwards
        Returns:
        itself
      • getForwardsInput

        public boolean getForwardsInput()
        Returns whether the handler forwards the input.
        Returns:
        true if handler forwards the input
      • restrictions

        public ActorHandlerInfo restrictions​(Class[] value)
        Sets the restrictions in terms of classes/interfaces.
        Parameters:
        value - the restrictions, null or empty array for none
        Returns:
        itself
      • hasRestrictions

        public boolean hasRestrictions()
        Returns whether there are further restrictions in regards to classes and/or interfaces.
        Returns:
        true if there are restrictions
      • getRestrictions

        public Class[] getRestrictions()
        Returns the restrictions on classes and/or interfaces.
        Returns:
        the restrictions, if any
      • toString

        public String toString()
        Returns a short string representation of the info object.
        Overrides:
        toString in class Object
        Returns:
        the string representation