org.obe.spi.model
Class OrJoinInstance

java.lang.Object
  extended byorg.obe.spi.model.JoinInstance
      extended byorg.obe.spi.model.OrJoinInstance
All Implemented Interfaces:
java.io.Serializable

public final class OrJoinInstance
extends JoinInstance

Implements the logic and state of an XOR-JOIN instance.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.obe.spi.model.JoinInstance
_states, _transitions
 
Constructor Summary
OrJoinInstance(java.lang.String[] transitions)
          Constructs a new XOR-join instance.
 
Method Summary
 boolean shouldFire(java.lang.String transitionId)
          Handles the activation of an afferent transition.
 
Methods inherited from class org.obe.spi.model.JoinInstance
didFire, equals, fire, getFiredCount, hasFired, hasFired, hashCode, isModified, reset, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrJoinInstance

public OrJoinInstance(java.lang.String[] transitions)
Constructs a new XOR-join instance.

Parameters:
transitions - IDs of afferent transitions.
Method Detail

shouldFire

public boolean shouldFire(java.lang.String transitionId)
Handles the activation of an afferent transition. An XOR-join fires as soon as one its afferent transitions has fired; subsequent activations of any of the transitions are ignored until the join is JoinInstance.reset().

Specified by:
shouldFire in class JoinInstance
Parameters:
transitionId - The ID of the transition that fired.
Returns:
true if the join fired.


SourceForge.net Logo OBE-1.0 Copyright (C) 2002-2006 Adrian Price. All Rights Reserved.