| java.lang.Object org.enhydra.jawe.base.transitionhandler.TransitionHandler
TransitionHandler | public class TransitionHandler (Code) | | Checks if it is allowed to add activity as a source or a target for a
transition, and if it is allowed to connect two activities.
author: Sasa Bojanic |
TransitionHandler | public TransitionHandler()(Code) | | |
acceptsSource | public boolean acceptsSource(Activity act, boolean isExcTrans)(Code) | | |
allowsConnection | public boolean allowsConnection(Activity act1, Activity act2, Transition t, boolean isExcTra, List status)(Code) | | Parameters: act1 - First activity Parameters: act2 - Last activity Parameters: status - List with first parameter as Integer with status. 0 - everythingis OK, 1 - source activity can't have more outgoing transitions,2 - target activity can't have more incoming transitions. 3 -can't connect two activities twice. true if can connect these two activities. |
isProperlyConnected | public boolean isProperlyConnected(Transition t)(Code) | | true if transition is properly connected. |
isProperlyConnected | public int isProperlyConnected(Activity act)(Code) | | 0 - everything is OK,
1 - activity can't have more outgoing transitions,
2 - activity can't have more incoming transitions,
3 - both, 1 and 2
|
|
|