|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcsp.util.filter.PoisonFilter
public class PoisonFilter
This filter will throw a PoisonException
when filter(Object)
is called. This can be
used to prevent a channel from being written to or read from.
Constructor Summary | |
---|---|
PoisonFilter()
Constructs a new filter with the default message. |
|
PoisonFilter(String message)
Constructs a new filter with a specific message. |
Method Summary | |
---|---|
Object |
filter(Object obj)
Applies the filter operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PoisonFilter()
public PoisonFilter(String message)
Method Detail |
---|
public Object filter(Object obj)
Filter
filter
in interface Filter
obj
- the original object in the channel communication.
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |