Package adams.flow.core
Class ActorHandlerInfo
- java.lang.Object
-
- adams.flow.core.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 Summary
Fields Modifier and Type Field Description protected ActorExecution
m_ActorExecution
how the sub-actors are executed/oriented.protected boolean
m_CanContainSource
whether the actor can contain a source sub-actor.protected boolean
m_CanContainStandalones
whether the actor can contain standalone sub-actors.protected boolean
m_CanEncloseActors
whether the actor can be used for enclosing other actors.protected boolean
m_ForwardsInput
whether the actor handler forwards input to the sub-actors.protected Class[]
m_Restrictions
further class/interface restrictions.
-
Constructor Summary
Constructors Constructor Description ActorHandlerInfo()
Initializes the info.ActorHandlerInfo(ActorHandlerInfo info)
Initializes the info with the provided info object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorHandlerInfo
actorExecution(ActorExecution value)
Sets how the actors are executed.ActorHandlerInfo
allowEncloseActors(boolean value)
Sets whether to allow enclosing of actors.ActorHandlerInfo
allowSource(boolean value)
Sets whether to allow source.ActorHandlerInfo
allowStandalones(boolean value)
Sets whether to allow standalones.boolean
canContainSource()
Returns whether a source is allowed in this group or not.boolean
canContainStandalones()
Returns whether standalones are allowed in this group or not.boolean
canEncloseActors()
Returns whether this actor can be used to enclose others.ActorHandlerInfo
forwardsInput(boolean value)
Sets whether to actor forwards the input.ActorExecution
getActorExecution()
Returns the how the actors are executed.boolean
getForwardsInput()
Returns whether the handler forwards the input.Class[]
getRestrictions()
Returns the restrictions on classes and/or interfaces.boolean
hasRestrictions()
Returns whether there are further restrictions in regards to classes and/or interfaces.ActorHandlerInfo
restrictions(Class[] value)
Sets the restrictions in terms of classes/interfaces.String
toString()
Returns a short string representation of the info object.
-
-
-
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
-
-