dip.order.result
Class TimeResult

java.lang.Object
  extended bydip.order.result.Result
      extended bydip.order.result.TimeResult
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class TimeResult
extends Result

TimeResult

Timestamp result, with an optional message. Time is always in UTC.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class dip.order.result.Result
message, power
 
Constructor Summary
TimeResult(Power power, java.lang.String resource)
          A TimeStamped result, applicable to a particular power.
TimeResult(java.lang.String resource)
          A TimeStamped result, applicable to all powers.
 
Method Summary
 long getGMTMillis()
          Get the milliseconds since midnight, January 1, 1970 UTC.
 java.lang.String getMessage(OrderFormatOptions ofo)
          Converts the Resource to a properly-internationlized text message.
 java.lang.String toString()
          Convert the output to a String
 
Methods inherited from class dip.order.result.Result
compareTo, getMessage, getPower
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeResult

public TimeResult(Power power,
                  java.lang.String resource)
A TimeStamped result, applicable to a particular power.

Note that resource must correspond to an il8n resource!


TimeResult

public TimeResult(java.lang.String resource)
A TimeStamped result, applicable to all powers.

Method Detail

getGMTMillis

public long getGMTMillis()
Get the milliseconds since midnight, January 1, 1970 UTC.


getMessage

public java.lang.String getMessage(OrderFormatOptions ofo)
Converts the Resource to a properly-internationlized text message. argument {0} is always the time.

Overrides:
getMessage in class Result

toString

public java.lang.String toString()
Convert the output to a String

Overrides:
toString in class Result


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.