org.eclipse.ohf.stem.core.model
Interface STEMTime

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
STEMTimeImpl

public interface STEMTime
extends org.eclipse.emf.ecore.EObject

A STEMTime instance represents a point in time in in the STEM system.

See Also:
Sequencer

Nested Class Summary
static class STEMTime.Units
          This is an enumeration of different common time units with their duration in milliseconds.
 
Method Summary
 STEMTime addIncrement(long timeIncrement)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getTime()
           
 int hashCode()
           
 void setTime(java.util.Date value)
          Sets the value of the 'Time' attribute.
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getTime

java.util.Date getTime()
Returns:
the time

setTime

void setTime(java.util.Date value)
Sets the value of the 'Time' attribute.

Parameters:
value - the new value of the 'Time' attribute.
See Also:
getTime()

addIncrement

STEMTime addIncrement(long timeIncrement)
Parameters:
timeIncrement - the number of milliseconds the new STEMTime is in the future.
Returns:
a new STEMTime that is a specified number of milliseconds from the current time.

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)