org.commonreality.message.command.time
Class TimeCommand

java.lang.Object
  extended by org.commonreality.message.impl.BaseMessage
      extended by org.commonreality.message.command.time.TimeCommand
All Implemented Interfaces:
java.io.Serializable, ICommand, ITimeCommand, IMessage

public final class TimeCommand
extends BaseMessage
implements java.io.Serializable, ITimeCommand

Author:
developer
See Also:
Serialized Form

Constructor Summary
TimeCommand(IIdentifier source, double whatTimeIsIt)
           
 
Method Summary
 IMessage copy()
           
 double getTime()
          what time is it?
 
Methods inherited from class org.commonreality.message.impl.BaseMessage
getMessageId, getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.commonreality.message.IMessage
getMessageId, getSource
 

Constructor Detail

TimeCommand

public TimeCommand(IIdentifier source,
                   double whatTimeIsIt)
Parameters:
source -
Method Detail

copy

public IMessage copy()
Specified by:
copy in interface IMessage

getTime

public double getTime()
Description copied from interface: ITimeCommand
what time is it?

Specified by:
getTime in interface ITimeCommand
Returns:
See Also:
ITimeCommand.getTime()