|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.AbstractTarget.PickAdapter
public static class AbstractTarget.PickAdapter
The implementation of the HistoryAware#Pick interface. All
relevant data is supplied at construct.
| Field Summary | |
|---|---|
private String |
comment
A comment to this observation. |
private boolean |
complete
The completeness flag. |
private long |
duration
The duration of the observation in ms. |
private double |
merit
The merit as the target was picked. |
private Date |
start
The time of the observation start. |
private boolean |
success
The success flag. |
private String |
unique
The unique identifier of this observation. |
| Constructor Summary | |
|---|---|
AbstractTarget.PickAdapter(boolean suc,
Date begin,
long elapse,
String data,
double pickmerit,
String remark)
Constructs a new pick. |
|
| Method Summary | |
|---|---|
int |
compareTo(HistoryAware.Pick that)
Two picks are compared by comparing their date. |
String |
getComment()
Returns the commant assigned to this pick. |
Date |
getDate()
Returns the starting date of the observation. |
long |
getDuration()
Returns the duration of this pick in ms. |
double |
getPickMerit()
Returns the merit the target gained at this pick. |
String |
getUnique()
Returns the URL of the observation data. |
boolean |
isSuccess()
Returns true if the pick was successful. |
boolean |
setSuccess(boolean wasgood)
Sets the success flag. |
String |
toString()
Returns a string version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean success
private boolean complete
private Date start
private long duration
private String unique
private double merit
private String comment
| Constructor Detail |
|---|
public AbstractTarget.PickAdapter(boolean suc,
Date begin,
long elapse,
String data,
double pickmerit,
String remark)
#changeProgramComplete
| Method Detail |
|---|
public int compareTo(HistoryAware.Pick that)
compareTo in interface Comparable<HistoryAware.Pick>public boolean isSuccess()
isSuccess in interface HistoryAware.Pickpublic boolean setSuccess(boolean wasgood)
setSuccess in interface HistoryAware.Pickpublic Date getDate()
getDate in interface HistoryAware.Pickpublic long getDuration()
getDuration in interface HistoryAware.Pickpublic String getUnique()
getUnique in interface HistoryAware.Pickpublic double getPickMerit()
getPickMerit in interface HistoryAware.Pickpublic String getComment()
getComment in interface HistoryAware.Pickpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||