T - the type of the optional user objectpublic class ChartActivityBase<T> extends ActivityBase<T> implements ChartActivity
ChartLayout to
create charts based on activities, e.g. for capacity usage / resource usage
profiles.ChartLayout.getMinValue(),
ChartLayout.getMaxValue()| Modifier and Type | Field and Description |
|---|---|
protected double |
chartValue |
DEFAULT_DURATION, endTime, id, name, startTime, userObject| Constructor and Description |
|---|
ChartActivityBase()
Constructs a new chart activity.
|
ChartActivityBase(double value)
Constructs a new chart activity with the given value.
|
ChartActivityBase(double value,
Instant time)
Constructs a new chart activity with the given value.
|
ChartActivityBase(double value,
Instant startTime,
Instant endTime)
Constructs a new chart activity with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getChartValue()
Returns the chart value of the activity.
|
String |
toString() |
getEndTime, getId, getName, getStartTime, getUserObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndTime, getId, getName, getStartTimepublic ChartActivityBase()
Instant.now() and the end time will be equal to
Instant.now() plus the value of ActivityBase.DEFAULT_DURATION. The
chart value will be equal to zero.public ChartActivityBase(double value)
Instant.now() and the end time will be equal
to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.value - the chart value of the activitypublic ChartActivityBase(double value,
Instant time)
value - the chart value of the activitytime - the start and end time of the activitypublic ChartActivityBase(double value,
Instant startTime,
Instant endTime)
value - the chart value of the activitystartTime - the start time of the activityendTime - the end time of the activitypublic double getChartValue()
ChartActivitygetChartValue in interface ChartActivitypublic String toString()
toString in class ActivityBase<T>Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.