|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.workstate.actions.NegatedGuard
public class NegatedGuard
A decorator that negates a guard. The result of the check(AttributeReader, AttributeReader)
method on this guard corresponds to the "not" operator applied to the result
of the check(AttributeReader, AttributeReader) method on the guard passed
to the constructor.
| Constructor Summary | |
|---|---|
NegatedGuard(Guard negatingGuard)
Build a guard that negates the result of the guard passed as parameter. |
|
| Method Summary | |
|---|---|
boolean |
check(AttributeReader event,
AttributeReader state)
Check if the condition is satisfied or not. |
boolean |
equals(Object o)
|
Integer |
getPriority()
The priority of this guard is equals to the priority of the negating guard passed to the constructor |
int |
hashCode()
|
boolean |
negates(Guard guard)
Check if this guard is the negation of the guard passed as the parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NegatedGuard(Guard negatingGuard)
negatingGuard - the negating guard
NullPointerException - if the negating guard is null| Method Detail |
|---|
public boolean check(AttributeReader event,
AttributeReader state)
Guard
check in interface Guardevent - the event that triggered the transition to which this guard
is associatedstate - the state that completely contains the transition to which
this guard is associatedpublic Integer getPriority()
getPriority in interface Guardpublic boolean negates(Guard guard)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||