edu.umn.cs.crisys
Class ASW.InhibitMessage

java.lang.Object
  |
  +--edu.umn.cs.crisys.RSM.Message
        |
        +--edu.umn.cs.crisys.ASW.InhibitMessage
Enclosing class:
ASW

protected static class ASW.InhibitMessage
extends edu.umn.cs.crisys.RSM.Message

Structure of Inhibit message received as input by the ASW.


Field Summary
 ASW.InhibitType i
          inhibit signal is the only field.
protected  java.lang.Object[] msg
           
 
Constructor Summary
ASW.InhibitMessage()
          Constructor.
 
Method Summary
 void printMessage(java.io.PrintStream str, java.lang.String header)
          Utility method to print message to streams.
 void readMessage(java.lang.Object[] fields)
          Parses in an array of (one) objects into an Inhibit message.
 java.lang.Object[] writeMessage()
          Writes out Inhibit signal as an Integer object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

public ASW.InhibitType i
inhibit signal is the only field.

msg

protected java.lang.Object[] msg
Constructor Detail

ASW.InhibitMessage

public ASW.InhibitMessage()
Constructor.
Method Detail

readMessage

public void readMessage(java.lang.Object[] fields)
Parses in an array of (one) objects into an Inhibit message.
Overrides:
readMessage in class edu.umn.cs.crisys.RSM.Message

writeMessage

public java.lang.Object[] writeMessage()
Writes out Inhibit signal as an Integer object. 0 indicates Inhibit flag is set and 1 indicates Inhibit flag is not set.
Overrides:
writeMessage in class edu.umn.cs.crisys.RSM.Message
Returns:
an array of one object containing inhibit signal as Integer.

printMessage

public void printMessage(java.io.PrintStream str,
                         java.lang.String header)
Utility method to print message to streams. This prints the number of fields and each field along with its corresponding Java object type. Calls writeMessage to convert the RSML-e mesage to raw objects. Derived classes may override this method, especially, if enumerations have to be printed as their descriptive strings.