TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.uml2sd.trace.selection
Interface IDateSelection

All Superinterfaces:
IEObjectSelection

public interface IDateSelection
extends IEObjectSelection

An interface to be implemented by selectable objects that represents a date or a date range


Field Summary
static int GLOBAL_RANGE
           
static int NOW
          The predefined meanings for a date selection: NOW: the selection represents a single date the user is focusing on VISIBLE_RANGE: the selection represents the visible time window the user is focusing on, by its starting and end dates GLOBAL_RANGE: the selection represents the full time window the user can navigate through by its starting and end dates
It is ensured by the Selection Provider that the start date is before the end date.
static int VISIBLE_RANGE
           
 
Method Summary
 double getEndDate()
          When the meaning is NOW, returns unpredictable results.
 int getMeaning()
          Returns the meaning of this date selection, from the list above
 double getStartDate()
          When the meaning is NOW, returns this NOW time.
 
Methods inherited from interface org.eclipse.hyades.uml2sd.trace.selection.IEObjectSelection
getEObject
 

Field Detail

NOW

static final int NOW

It is ensured by the Selection Provider that the start date is before the end date.
Dates are of type double, as in the Hyades Trace model.

See Also:
Constant Field Values

VISIBLE_RANGE

static final int VISIBLE_RANGE
See Also:
Constant Field Values

GLOBAL_RANGE

static final int GLOBAL_RANGE
See Also:
Constant Field Values
Method Detail

getMeaning

int getMeaning()
Returns the meaning of this date selection, from the list above


getStartDate

double getStartDate()
When the meaning is NOW, returns this NOW time.
When it is VISIBLE_RANGE or GLOBAL_RANGE, returns the lowest date of the range.


getEndDate

double getEndDate()
When the meaning is NOW, returns unpredictable results.
When it is VISIBLE_RANGE or GLOBAL_RANGE, returns the highest time of the range.


TPTP 4.5.0 Platform Project
Public API Specification