equip.runtime
Class Time

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.runtime.Time
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
TimeImpl

public abstract class Time
extends ValueBase

System time class (IDL'd in eqBasicTypes.idl). Each instance represents a single system time, in UNIX style (seconds since midnight Jan 1st 1970). Comparable to Java's java.util.Date class.


Field Summary
 int sec
          Seconds portion of time (since midnight Jan 1st 1970).
 int usec
          micro-seconds (millionths of a second) portion of time.
 
Constructor Summary
Time()
          Default no-arg constructor
 
Method Summary
 boolean _equals_helper(Time c)
          Internal IDL-generated equality test helper
 boolean _matches_helper(Time c)
          Internal IDL-generated match test helper
 boolean equals(java.lang.Object c)
          Standard IDL-generated equality test.
abstract  void getCurrentTime()
          Get current time from local host system clock.
 java.lang.String getModuleName()
          IDL-generated helper routine to get module name (currently unimplemented).
 boolean matches(java.lang.Object c)
          Standard IDL-generated template match test.
 void readObject(ObjectInputStream in)
          Internal IDL-generated serialisation helper.
 void writeObject(ObjectOutputStream out)
          Internal IDL-generated serialisation helper.
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sec

public int sec
Seconds portion of time (since midnight Jan 1st 1970).


usec

public int usec
micro-seconds (millionths of a second) portion of time.

Constructor Detail

Time

public Time()
Default no-arg constructor

Method Detail

getCurrentTime

public abstract void getCurrentTime()
Get current time from local host system clock. In theory this should be a factory/init method, but I haven't implemented that part of eqidl [cmg].


getModuleName

public java.lang.String getModuleName()
IDL-generated helper routine to get module name (currently unimplemented).

Overrides:
getModuleName in class Object
Returns:
name of this class's module

equals

public boolean equals(java.lang.Object c)
Standard IDL-generated equality test.

Overrides:
equals in class ValueBase
Parameters:
c - The object to be compared against this.
Returns:
true if this is equal to c

_equals_helper

public boolean _equals_helper(Time c)
Internal IDL-generated equality test helper


matches

public boolean matches(java.lang.Object c)
Standard IDL-generated template match test.

Overrides:
matches in class ValueBase
Parameters:
c - The object to be checked against this template.
Returns:
true if this (as a template) matches the argument

_matches_helper

public boolean _matches_helper(Time c)
Internal IDL-generated match test helper


writeObject

public void writeObject(ObjectOutputStream out)
                 throws java.io.IOException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
writeObject in class ValueBase
Throws:
java.io.IOException

readObject

public void readObject(ObjectInputStream in)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException,
                       java.lang.InstantiationException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
readObject in class ValueBase
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException