T
- the type of the optional user objectpublic class CompletableActivityBase<T> extends ActivityBase<T> implements CompletableActivity
Modifier and Type | Field and Description |
---|---|
protected double |
percentageComplete |
DEFAULT_DURATION, endTime, id, name, startTime, userObject
Constructor and Description |
---|
CompletableActivityBase()
Constructs a new activity.
|
CompletableActivityBase(Instant startTime,
Instant endTime)
Constructs a new activity with the start time and end time.
|
CompletableActivityBase(String name)
Constructs a new activity with the given name.
|
CompletableActivityBase(String name,
Instant startTime,
Instant endTime)
Constructs a new activity with the given name, start time, and end time.
|
Modifier and Type | Method and Description |
---|---|
double |
getPercentageComplete()
Returns the "percentage complete" value of the activity.
|
String |
toString() |
getEndTime, getId, getName, getStartTime, getUserObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndTime, getId, getName, getStartTime
public CompletableActivityBase()
Instant.now()
and the end time will be equal to
Instant.now()
plus the value of ActivityBase.DEFAULT_DURATION
.public CompletableActivityBase(String name)
Instant.now()
and the end time will be equal to
Instant.now()
plus the value of ActivityBase.DEFAULT_DURATION
.name
- the name of the activitypublic CompletableActivityBase(Instant startTime, Instant endTime)
startTime
- the start time of the activityendTime
- the end time of the activitypublic CompletableActivityBase(String name, Instant startTime, Instant endTime)
name
- the name of the activitystartTime
- the start time of the activityendTime
- the end time of the activitypublic double getPercentageComplete()
CompletableActivity
getPercentageComplete
in interface CompletableActivity
public String toString()
toString
in class ActivityBase<T>
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.