|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--User
Class User in evap
Shows state management in a simulation
User inserts message into channel and then goes into
wait state. Channel then goes into brief wait state
then "evaporates" message. Then user wakes up again
and drops in another message. All this is stepped
by the Sim object.
Field Summary | |
(package private) boolean |
countingDown
State says counting down. |
(package private) int |
downCount
Countdown var, switch to insertion when it == 0. |
(package private) Channel |
myChannel
The channel attached to this User. |
Constructor Summary | |
User()
|
Method Summary | |
(package private) void |
attachToChannel(Channel ch)
Attaches user to channel. (could have used constructor argument for this) |
static void |
Main(java.lang.String[] args)
|
(package private) void |
step()
As with all objects, responds to step(). |
(package private) void |
User()
Default constructor inits to insertion state. |
Methods inherited from class java.lang.Object |
|
Field Detail |
Channel myChannel
boolean countingDown
int downCount
Constructor Detail |
public User()
Method Detail |
public static void Main(java.lang.String[] args)
void User()
void attachToChannel(Channel ch)
void step()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |