org.simnet.coupling
Class InteractionMode

java.lang.Object
  extended by org.simnet.coupling.InteractionMode

public final class InteractionMode
extends Object

Typesafe enumeration of interaction modes.


Field Summary
static InteractionMode BOTH_WAYS
          Both ways interaction mode.
static Collection C_VALUES
          Collection of interaction mode values.
static InteractionMode NEITHER_WAY
          Neither way interaction mode.
static InteractionMode NETWORK_TO_WORLD
          Network to world interaction mode.
static InteractionMode WORLD_TO_NETWORK
          World to network interaction mode.
 
Method Summary
 boolean isBothWays()
          Return true if this interaction mode is BOTH_WAYS.
 boolean isNeitherWay()
          Return true if this interaction mode is NEITHER_WAY.
 boolean isNetworkToWorld()
          Return true if this interaction mode is NETWORK_TO_WORLD.
 boolean isWorldToNetwork()
          Return true if this interaction mode is WORLD_TO_NETWORK.
 String toString()
          Returns String representation of interaction mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WORLD_TO_NETWORK

public static final InteractionMode WORLD_TO_NETWORK
World to network interaction mode. Worlds affect networks only.


NETWORK_TO_WORLD

public static final InteractionMode NETWORK_TO_WORLD
Network to world interaction mode. Networks affect worlds only.


BOTH_WAYS

public static final InteractionMode BOTH_WAYS
Both ways interaction mode. Worlds affect networks and vice-versa.


NEITHER_WAY

public static final InteractionMode NEITHER_WAY
Neither way interaction mode. Worlds and networks are decoupled.


C_VALUES

public static final Collection C_VALUES
Collection of interaction mode values.

Method Detail

isWorldToNetwork

public boolean isWorldToNetwork()
Return true if this interaction mode is WORLD_TO_NETWORK.

Returns:
true if this interaction mode is WORLD_TO_NETWORK

isNetworkToWorld

public boolean isNetworkToWorld()
Return true if this interaction mode is NETWORK_TO_WORLD.

Returns:
true if this interaction mode is NETWORK_TO_WORLD

isBothWays

public boolean isBothWays()
Return true if this interaction mode is BOTH_WAYS.

Returns:
true if this interaction mode is BOTH_WAYS

isNeitherWay

public boolean isNeitherWay()
Return true if this interaction mode is NEITHER_WAY.

Returns:
true if this interaction mode is NEITHER_WAY

toString

public String toString()
Returns String representation of interaction mode.

Overrides:
toString in class Object
Returns:
String representing interaction mode