com.werken.blissed.guard
Class BooleanGuard
java.lang.Object
|
+--com.werken.blissed.guard.BooleanGuard
- All Implemented Interfaces:
- Guard
- public class BooleanGuard
- extends java.lang.Object
- implements Guard
Simple flag-based boolean Guard.
- Author:
- bob mcwhirter
- See Also:
Guard
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanGuard
public BooleanGuard(boolean guard)
- Construct.
- Parameters:
guard - Initial guard value.
setGuard
public void setGuard(boolean guard)
- Set the guard value.
- Parameters:
guard - The guard value.
getGuard
public boolean getGuard()
- Retrieve the guard value.
- Returns:
- The guard value.
test
public boolean test(Transition transition,
ProcessContext context)
- Test this guard against a process context.
implementation note: This method
ignores the process context itself, and returns
the same value as returned from
getGuard().
- Specified by:
test in interface Guard
- Parameters:
transition - The transition this guard guards.context - The process context.- Returns:
true if the process context passes
this guard, otherwise false.- See Also:
setGuard(boolean),
getGuard()
Copyright © 2002-2002 The Werken Company. All Rights Reserved.