org.obe.spi.model
Class AndJoinInstance

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

public final class AndJoinInstance
extends JoinInstance

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

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.obe.spi.model.JoinInstance
_states, _transitions
 
Constructor Summary
AndJoinInstance(java.lang.String[] transitions)
          Constructs a new AND-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

AndJoinInstance

public AndJoinInstance(java.lang.String[] transitions)
Constructs a new AND-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 AND-join fires when all of its afferent transitions have fired.

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.