public interface HistoryAware extends TargetDefinition
Handable interface rather than the TargetDefinition
interface.| Modifier and Type | Interface and Description |
|---|---|
static interface |
HistoryAware.Pick
Objects implementing this interface are list elements returned by the
getEntireHistory() method. |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecution(GlobalGrouping set,
Date start,
long dur,
String unique,
String comment)
Adds an execution to the target.
|
List<HistoryAware.Pick> |
getEntireHistory()
Returns a list of all observations stored in the document.
|
HistoryAware.Pick |
getFailure(int nr)
Returns the date of the specified unsuccessful observation.
|
int |
getFailureCount()
Returns the number of unsuccessfully performed observations of the
target.
|
HistoryAware.Pick |
getFirstFailure()
Returns the date of the first unsuccessful observation.
|
HistoryAware.Pick |
getFirstPick()
Returns the first pick.
|
HistoryAware.Pick |
getFirstSuccess()
Returns the
HistoryAware.Pick of the first successful observation. |
HistoryAware.Pick |
getLastFailure()
Returns the date of the last unsuccessful observation.
|
HistoryAware.Pick |
getLastPick()
Returns the last pick.
|
HistoryAware.Pick |
getLastSuccess()
Returns the date of the last successful observation.
|
HistoryAware.Pick |
getPick(int nr)
Returns the pick with the given index or null if non-defined.
|
int |
getPickCount()
Returns the number of picks currently stored in the history.
|
Date |
getSubmitted()
Returns the date the target was submitted.
|
HistoryAware.Pick |
getSuccess(int nr)
Returns the pick of the specified successful observation.
|
int |
getSuccessCount()
Returns the number of already successfully performed observations of the
target.
|
boolean |
isProgramCompleted()
Returns true if the program was completed.
|
getDescription, getDescriptionID, getEmailAddresses, getImageType, getInstitution, getName, getTargetResource, getTargetSpecific, getTeam, getTitle, getType, getUserDate getSubmitted()
void addExecution(GlobalGrouping set, Date start, long dur, String unique, String comment)
MasterMindstart - The actual observation start.dur - The duration of target observation, ms.data - The URL of the observation data.comment - An optional comment.boolean isProgramCompleted()
List<HistoryAware.Pick> getEntireHistory()
HistoryAware.Pick instances. The list is ordered in a sense that older
picks are earlier in the list. This is in contrast to the
getPick(int) and other methods, where the index runs from the most
recent pick backwards. This is a consequence of the List.add
method.int getPickCount()
HistoryAware.Pick getPick(int nr)
HistoryAware.Pick getFirstPick()
HistoryAware.Pick getLastPick()
int getSuccessCount()
HistoryAware.Pick getFirstSuccess()
HistoryAware.Pick of the first successful observation. Note that
this method only returns the first successful pick the target is aware
of. If a maximum number of picks is specified, the pick returned by this
method may change if the history is full.HistoryAware.Pick getLastSuccess()
HistoryAware.Pick getSuccess(int nr)
nr - The index of the queried observation. Numbering starts with
zero.int getFailureCount()
HistoryAware.Pick getFirstFailure()
HistoryAware.Pick getLastFailure()
HistoryAware.Pick getFailure(int nr)
nr - The index of the queried observation. Numbering starts with
zero.