Package coneforest.psylla.core
Interface PsyContext
-
- All Superinterfaces:
PsyConvertableToName
,PsyConvertableToString
,PsyObject
- All Known Implementing Classes:
Interpreter
public interface PsyContext extends PsyObject
A representation of Ψ-context
, an execution context.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description long
getId()
void
join()
static PsyContext
psyCurrentContext()
Returns the currently executing context.default void
psyJoin()
static void
psySleep(PsyInteger oDuration)
Causes the currently executing context to sleep for the specified number of milliseconds.default String
toSyntaxString()
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
-
-
-
Method Detail
-
getId
long getId()
-
join
void join() throws InterruptedException
- Throws:
InterruptedException
-
psyJoin
default void psyJoin() throws PsyException
- Throws:
PsyException
-
toSyntaxString
default String toSyntaxString()
- Specified by:
toSyntaxString
in interfacePsyObject
-
psySleep
static void psySleep(PsyInteger oDuration) throws PsyException
Causes the currently executing context to sleep for the specified number of milliseconds.- Parameters:
oDuration
- the duration to sleep for in milliseconds.- Throws:
PsyRangeCheckException
- when the duration is negative.PsyInterruptException
- TODO.PsyException
-
psyCurrentContext
static PsyContext psyCurrentContext()
Returns the currently executing context.- Returns:
- the currently executing context.
-
-