edu.nau.cs.scu
Class ResponseGenerator

java.lang.Object
  extended by edu.nau.cs.scu.ResponseGenerator

public class ResponseGenerator
extends java.lang.Object

This is a very basic class which is responsible for retrieving status information from the physics model and sending it over serial communications.

Author:
Sam Mallon

Method Summary
static ResponseGenerator getInstance()
           
 void sendCurrentStatus()
          Retrieves the current status of the Physics Model and sends it to the MEU over the currently active serial port in the SignalInterpreter.
protected  boolean sendStatus(Status s)
          Writes a Status packet to the currently active serial port in the SignalInterpreter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ResponseGenerator getInstance()

sendStatus

protected boolean sendStatus(Status s)
Writes a Status packet to the currently active serial port in the SignalInterpreter. This method should not be called directly to send a Status message. Use instead sendCurrentStatus()

Parameters:
s - The status to be sent.
Returns:
Whether the message was successfully sent.

sendCurrentStatus

public void sendCurrentStatus()
Retrieves the current status of the Physics Model and sends it to the MEU over the currently active serial port in the SignalInterpreter.