moteaccess
Class TextTOSMoteAccessUI

java.lang.Object
  extended bymoteaccess.TextTOSMoteAccessUI
All Implemented Interfaces:
TOSMoteAccessUI

public class TextTOSMoteAccessUI
extends java.lang.Object
implements TOSMoteAccessUI

Author:
Matteo Giani

Constructor Summary
TextTOSMoteAccessUI()
           
 
Method Summary
 void addedReaction(RequestID rid, MoteReaction req)
          Notifies the user that a new reaction has been installed.
 void addedRequest(RequestID rid, MoteRequest req)
          Notifies the user that a new request is being sent to the network.
 void printStatusLine(java.lang.String status)
          Prints a status message.
 void stoppedReaction(RequestID rid, MoteReaction req, java.lang.String reason)
          Notifies the user that a reaction was stopped.
 void stoppedRequest(RequestID rid, MoteRequest req, java.lang.String reason)
          Notifies the user that a running request was stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTOSMoteAccessUI

public TextTOSMoteAccessUI()
Method Detail

printStatusLine

public void printStatusLine(java.lang.String status)
Prints a status message.

Specified by:
printStatusLine in interface TOSMoteAccessUI
Parameters:
status - : status message to print.

addedRequest

public void addedRequest(RequestID rid,
                         MoteRequest req)
Notifies the user that a new request is being sent to the network.

Specified by:
addedRequest in interface TOSMoteAccessUI
Parameters:
req - : the MoteRequest object describing the new request.

addedReaction

public void addedReaction(RequestID rid,
                          MoteReaction req)
Notifies the user that a new reaction has been installed.

Specified by:
addedReaction in interface TOSMoteAccessUI
Parameters:
req - : the MoteReaction object describing the new reaction.

stoppedRequest

public void stoppedRequest(RequestID rid,
                           MoteRequest req,
                           java.lang.String reason)
Notifies the user that a running request was stopped.

Specified by:
stoppedRequest in interface TOSMoteAccessUI
Parameters:
req - : the MoteRequest that just stopped.
reason - : the reason why the request was stopped.

stoppedReaction

public void stoppedReaction(RequestID rid,
                            MoteReaction req,
                            java.lang.String reason)
Notifies the user that a reaction was stopped.

Specified by:
stoppedReaction in interface TOSMoteAccessUI
Parameters:
req - : the MoteReaction that just stopped.
reason - : the reason why the reaction was stopped.