Class User

java.lang.Object
  |
  +--User

public class User
extends java.lang.Object

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.

Version:
1.0
Author:
RP Futrelle

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

myChannel

Channel myChannel
The channel attached to this User.

countingDown

boolean countingDown
State says counting down.

downCount

int downCount
Countdown var, switch to insertion when it == 0.
Constructor Detail

User

public User()
Method Detail

Main

public static void Main(java.lang.String[] args)

User

void User()
Default constructor inits to insertion state.

attachToChannel

void attachToChannel(Channel ch)
Attaches user to channel.
(could have used constructor argument for this)

step

void step()
As with all objects, responds to step().