mns
Class MNSRobotPartEvent

java.lang.Object
  extended by java.util.EventObject
      extended by mns.MNSRobotPartEvent
All Implemented Interfaces:
java.io.Serializable

public class MNSRobotPartEvent
extends java.util.EventObject

simple event generated by the CNSRobot Part to indicate its status or send a command to thew CNS

Author:
Martin lukac
See Also:
Serialized Form

Constructor Summary
MNSRobotPartEvent(int state, MNSRobotPart source)
          constructor
MNSRobotPartEvent(java.lang.String command, MNSRobotPart source)
          constructor
 
Method Summary
 java.lang.String getCommand()
          get the command
 MNSRobotPart getComSource()
          get the source of this command
 int getState()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MNSRobotPartEvent

public MNSRobotPartEvent(java.lang.String command,
                         MNSRobotPart source)
constructor

Parameters:
command - - command
source - - source fo the command

MNSRobotPartEvent

public MNSRobotPartEvent(int state,
                         MNSRobotPart source)
constructor

Parameters:
command - - command
source - - source fo the command
Method Detail

getCommand

public java.lang.String getCommand()
get the command

Returns:
- the Command

getComSource

public MNSRobotPart getComSource()
get the source of this command

Returns:
- the source of the command and event

getState

public int getState()
Returns: