public enum StatePattern extends Enum<StatePattern>
| Enum Constant and Description |
|---|
CapacityRequestState
Capacity request state
|
CapacityResponseState
Capacity response state
|
ConnectionClosedState
Connection closed state
|
LoginRequestState
Login request state
|
LoginResponseState
Login response state
|
LogoutRequestState
Logout request state
|
LogoutResponseState
Logout response state
|
ReadRequestState
Read request state
|
ReadResponseState
Read request state
|
WaitingForWorkState
Waiting for work state
|
WriteFirstBurstState
Write first burst state
|
WriteRequestState
Write request state
|
WriteSecondBurstState
Write second burst state
|
WriteSecondResponseState
Write second response state
|
| Modifier and Type | Field and Description |
|---|---|
static StatePattern |
intial
This state is the initial state in the process
|
| Modifier and Type | Method and Description |
|---|---|
static StatePattern[] |
nextState(StatePattern s)
This method returns the following state(s)
Multiple states mean that there is more than one
state possible for the follow up.
|
static StatePattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatePattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatePattern LoginRequestState
public static final StatePattern LoginResponseState
public static final StatePattern CapacityRequestState
public static final StatePattern CapacityResponseState
public static final StatePattern ReadRequestState
public static final StatePattern ReadResponseState
public static final StatePattern WriteRequestState
public static final StatePattern WriteFirstBurstState
public static final StatePattern WriteSecondResponseState
public static final StatePattern WriteSecondBurstState
public static final StatePattern LogoutRequestState
public static final StatePattern LogoutResponseState
public static final StatePattern WaitingForWorkState
public static final StatePattern ConnectionClosedState
public static final StatePattern intial
public static StatePattern[] values()
for (StatePattern c : StatePattern.values()) System.out.println(c);
public static StatePattern valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static StatePattern[] nextState(StatePattern s)
StatePattern - sCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.