Class Channel

java.lang.Object
  |
  +--Channel

public class Channel
extends java.lang.Object

Class Channel in evap
Shows state management in a simulation When message is inserted, channel goes into countdown state and then nulls out ("evaporates") message.
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, evaporate message when it == 0.
(package private)  java.lang.String message
          Contents of the channel.
 
Constructor Summary
Channel()
           
 
Method Summary
(package private)  void Channel()
          Default constructor inits to empty channel.
(package private)  void insertMessage(java.lang.String str)
          Accepts string and places in message; starts countdown.
static void Main(java.lang.String[] args)
           
(package private)  void step()
          As with all objects, responds to step().
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

message

java.lang.String message
Contents of the channel.

countingDown

boolean countingDown
State says counting down.

downCount

int downCount
Countdown var, evaporate message when it == 0.
Constructor Detail

Channel

public Channel()
Method Detail

Main

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

Channel

void Channel()
Default constructor inits to empty channel.

insertMessage

void insertMessage(java.lang.String str)
Accepts string and places in message; starts countdown. Important to note that no counting occurs until step() is called -- the key to object autonomy in our simulation.

step

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