java.lang.Object
coneforest.psylla.core.PsyCondition
- All Implemented Interfaces:
PsyObject
The representation of
condition.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextActionContext action of thenotifyoperator.static final ContextActionContext action of thewaitoperator.Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPsyCondition(Condition condition) Constructs aconditionobject that wraps given condition. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_NOTIFY
Context action of thenotifyoperator. -
PSY_WAIT
Context action of thewaitoperator.
-
-
Constructor Details
-
PsyCondition
Constructs aconditionobject that wraps given condition.- Parameters:
condition- a condition.
-
-
Method Details
-
psyNotify
public void psyNotify() -
psyWait
Causes the current context to wait until it is notified or interrupted.- Throws:
PsyInterruptException- when current context is interrupted.
-