|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JSimProcessState>
cz.zcu.fav.kiv.jsim.JSimProcessState
public enum JSimProcessState
Process state can be one of the following constants:
Enum Constant Summary | |
---|---|
ACTIVE
A process is active if it is running just now. |
|
BLOCKED_ON_MESSAGE_RECEIVE
A process gets blocked on receiving a message if the blocking version of the receive method is used and no message is currently available to be read. |
|
BLOCKED_ON_MESSAGE_SEND
A process gets blocked on sending a message if the blocking version of the send method is used and the receiver is not ready yet to read the message. |
|
BLOCKED_ON_SEMAPHORE
A process gets blocked on a semaphore if it invokes its P() method and the semaphore's internal counter is equal to zero. |
|
NEW
A process is new if it has been created but not started and not scheduled yet. |
|
PASSIVE
A process is passive if it has been started and it has no event in the calendar. |
|
SCHEDULED
A process is scheduled if it has an event in the calendar so it will run in the future. |
|
TERMINATED
A process is terminated if it has reached the end of its life() method. |
Field Summary | |
---|---|
private java.lang.String |
humanReadableDescription
A human-readable description of the process state. |
Method Summary | |
---|---|
java.lang.String |
toString()
Returns a human-readable description of the process state. |
static JSimProcessState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JSimProcessState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JSimProcessState NEW
public static final JSimProcessState PASSIVE
public static final JSimProcessState SCHEDULED
public static final JSimProcessState ACTIVE
public static final JSimProcessState BLOCKED_ON_SEMAPHORE
public static final JSimProcessState BLOCKED_ON_MESSAGE_SEND
public static final JSimProcessState BLOCKED_ON_MESSAGE_RECEIVE
public static final JSimProcessState TERMINATED
Field Detail |
---|
private final java.lang.String humanReadableDescription
Method Detail |
---|
public static final JSimProcessState[] values()
for(JSimProcessState c : JSimProcessState.values()) System.out.println(c);
public static JSimProcessState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic java.lang.String toString()
toString
in class java.lang.Enum<JSimProcessState>
Enum.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |