public static class AbstractTarget.Allocation extends Object implements Allocable, Serializable, Comparable<Allocable>
HistoryAware.Pick interface. All
relevant data is supplied at construct.| Modifier and Type | Field and Description |
|---|---|
private long |
duration
The duration of the observation in ms.
|
private static long |
serialVersionUID |
private Date |
start
The time of the observation start.
|
private String |
unique
The unique identifier of this observation.
|
| Constructor and Description |
|---|
Allocation(Date begin,
long elapse,
String id)
Constructs a new pick.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Allocable that)
Two picks are compared by comparing their date.
|
Date |
getDate()
Returns the starting date of the observation.
|
long |
getDuration()
Returns the duration of this pick in ms.
|
String |
getUnique()
Returns the URL of the observation data.
|
String |
toString()
Returns a string version.
|
private static final long serialVersionUID
private final Date start
private final long duration
private final String unique
public Allocation(Date begin, long elapse, String id)
#changeProgramCompletepublic int compareTo(Allocable that)
compareTo in interface Comparable<Allocable>public Date getDate()
public long getDuration()
getDuration in interface Allocablepublic String getUnique()