org.robokind.impl.messaging.services
Class PortableServiceCommand

java.lang.Object
  extended by org.robokind.impl.messaging.services.PortableServiceCommand
All Implemented Interfaces:
ServiceCommand

public class PortableServiceCommand
extends Object
implements ServiceCommand

Author:
Matthew Stevenson

Nested Class Summary
static class PortableServiceCommand.Factory
           
static class PortableServiceCommand.MessageRecordAdapter
           
static class PortableServiceCommand.RecordMessageAdapter
           
 
Field Summary
 
Fields inherited from interface org.robokind.api.messaging.services.ServiceCommand
PAUSE, RESUME, START, STOP
 
Constructor Summary
PortableServiceCommand(ServiceCommand command)
           
PortableServiceCommand(ServiceCommandRecord record)
           
PortableServiceCommand(String sourceId, String destId, long timestampMillisecUTC, String command)
           
 
Method Summary
 String getCommand()
           
 String getDestinationId()
           
 ServiceCommandRecord getRecord()
           
 String getSourceId()
           
 long getTimestampMillisecUTC()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableServiceCommand

public PortableServiceCommand(ServiceCommandRecord record)

PortableServiceCommand

public PortableServiceCommand(ServiceCommand command)

PortableServiceCommand

public PortableServiceCommand(String sourceId,
                              String destId,
                              long timestampMillisecUTC,
                              String command)
Method Detail

getSourceId

public String getSourceId()
Specified by:
getSourceId in interface ServiceCommand

getDestinationId

public String getDestinationId()
Specified by:
getDestinationId in interface ServiceCommand

getTimestampMillisecUTC

public long getTimestampMillisecUTC()
Specified by:
getTimestampMillisecUTC in interface ServiceCommand

getCommand

public String getCommand()
Specified by:
getCommand in interface ServiceCommand

getRecord

public ServiceCommandRecord getRecord()


Copyright © 2011-2012. All Rights Reserved.