public class Transition extends Object
| Constructor and Description |
|---|
Transition() |
Transition(int id,
String name) |
Transition(int id,
String name,
int originStateId,
int targetStateId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getPerformingRole(Activity act,
AgentPath agent) |
Query |
getQuery(CastorHashMap actProps) |
String |
getReservation(Activity act,
AgentPath agent) |
String |
getRoleOverride(CastorHashMap actProps) |
Schema |
getSchema(CastorHashMap actProps) |
Script |
getScript(CastorHashMap actProps) |
String |
getScriptName(CastorHashMap actProps)
Deprecated.
|
int |
getScriptVersion(CastorHashMap actProps)
Deprecated.
|
int |
hashCode() |
boolean |
hasOutcome(CastorHashMap actProps) |
boolean |
hasQuery(CastorHashMap actProps) |
boolean |
hasScript(CastorHashMap actProps) |
boolean |
isEnabled(Activity act)
Computes if the Transition is enabled or not.
|
boolean |
reinitializes() |
protected boolean |
resolveStates(HashMap<Integer,State> states) |
void |
setReinitializes(boolean reinit) |
void |
setTargetState(State targetState) |
String |
toString() |
public Transition()
public Transition(int id,
String name)
public Transition(int id,
String name,
int originStateId,
int targetStateId)
public void setTargetState(State targetState)
public boolean reinitializes()
public void setReinitializes(boolean reinit)
public String getRoleOverride(CastorHashMap actProps)
public String getPerformingRole(Activity act, AgentPath agent) throws ObjectNotFoundException, AccessRightsException
public boolean isEnabled(Activity act) throws ObjectNotFoundException
act - the activity of the actual StateMachine/TransitionObjectNotFoundException - Objects were not found while evaluating propertiespublic boolean hasOutcome(CastorHashMap actProps)
public boolean hasScript(CastorHashMap actProps)
public boolean hasQuery(CastorHashMap actProps)
public Schema getSchema(CastorHashMap actProps) throws InvalidDataException, ObjectNotFoundException
public Script getScript(CastorHashMap actProps) throws ObjectNotFoundException, InvalidDataException
public Query getQuery(CastorHashMap actProps) throws ObjectNotFoundException, InvalidDataException
@Deprecated public String getScriptName(CastorHashMap actProps)
@Deprecated public int getScriptVersion(CastorHashMap actProps) throws InvalidDataException
InvalidDataExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.