java.lang.Object
coneforest.psylla.core.PsyCondition
- All Implemented Interfaces:
PsyObject
The representation of
condition
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextAction
Context action of thenotify
operator.static final ContextAction
Context action of thewait
operator.Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionPsyCondition
(Condition condition) Constructs acondition
object that wraps given condition. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, toSyntaxString, typeName
-
Field Details
-
PSY_NOTIFY
Context action of thenotify
operator. -
PSY_WAIT
Context action of thewait
operator.
-
-
Constructor Details
-
PsyCondition
Constructs acondition
object 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.
-