org.omg.dds.core.modifiable
Class ModifiableTime

java.lang.Object
  extended by org.omg.dds.core.Time
      extended by org.omg.dds.core.modifiable.ModifiableTime
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, DDSObject, ModifiableValue<Time,ModifiableTime>, Value<Time,ModifiableTime>

public abstract class ModifiableTime
extends Time
implements ModifiableValue<Time,ModifiableTime>

See Also:
Serialized Form

Constructor Summary
ModifiableTime()
           
 
Method Summary
abstract  ModifiableTime add(Duration duration)
          Increment this time by the given amount.
abstract  ModifiableTime add(long duration, java.util.concurrent.TimeUnit unit)
          Increment this time by the given amount.
abstract  ModifiableTime clone()
          Extends the concept of "cloneable" defined in java.lang by providing an explicit public Value.clone() method.
abstract  ModifiableTime setTime(long time, java.util.concurrent.TimeUnit unit)
           
abstract  ModifiableTime subtract(Duration duration)
          Decrement this time by the given amount.
abstract  ModifiableTime subtract(long duration, java.util.concurrent.TimeUnit unit)
          Decrement this time by the given amount.
 
Methods inherited from class org.omg.dds.core.Time
getRemainder, getTime, invalidTime, isValid, newTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.dds.core.modifiable.ModifiableValue
copyFrom, finishModification
 
Methods inherited from interface org.omg.dds.core.Value
equals, hashCode, modify
 
Methods inherited from interface org.omg.dds.core.DDSObject
getBootstrap
 

Constructor Detail

ModifiableTime

public ModifiableTime()
Method Detail

setTime

public abstract ModifiableTime setTime(long time,
                                       java.util.concurrent.TimeUnit unit)
Returns:
this

add

public abstract ModifiableTime add(Duration duration)
Increment this time by the given amount.

Returns:
this

add

public abstract ModifiableTime add(long duration,
                                   java.util.concurrent.TimeUnit unit)
Increment this time by the given amount.

Returns:
this

subtract

public abstract ModifiableTime subtract(Duration duration)
Decrement this time by the given amount.

Returns:
this

subtract

public abstract ModifiableTime subtract(long duration,
                                        java.util.concurrent.TimeUnit unit)
Decrement this time by the given amount.

Returns:
this

clone

public abstract ModifiableTime clone()
Description copied from interface: Value
Extends the concept of "cloneable" defined in java.lang by providing an explicit public Value.clone() method.

Specified by:
clone in interface ModifiableValue<Time,ModifiableTime>
Specified by:
clone in interface Value<Time,ModifiableTime>
Specified by:
clone in class Time
Returns:
a new object that with state identical to that of this object.


Copyright © 2010 Real-Time Innovations, Inc. (RTI)
Copyright © 2010 PrismTech, Ltd.
Copyright © 2010 Object Management Group, Inc. (OMG)
All Rights Reserved.