cz.cuni.pogamut.MessageObjects
Class Command

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.Command

public class Command
extends java.lang.Object

Command is a wrapper for string which contain command content and command type (e. g. RUN)


Field Summary
private  java.lang.String content
           
private  CommandTypes type
           
 
Constructor Summary
Command(java.lang.String content, CommandTypes type)
           
 
Method Summary
 CommandTypes getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private CommandTypes type

content

private java.lang.String content
Constructor Detail

Command

public Command(java.lang.String content,
               CommandTypes type)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

public CommandTypes getType()