Klasse ActivityBase<T>
java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
- Typparameter:
T- the type of an optional user object
- Alle implementierten Schnittstellen:
Activity
- Bekannte direkte Unterklassen:
CalendarActivityBase,ChartActivityBase,CompletableActivityBase,HighLowChartActivityBase,MutableActivityBase
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs a new activity.ActivityBase(String name) Constructs a new activity with the given name.ActivityBase(String name, Instant startTime, Instant endTime) Constructs a new activity with the given name, start time, and end time.ActivityBase(Instant startTime, Instant endTime) Constructs a new activity with the start time and end time. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungThe end time of the activity.getId()The unique id of the activity.getName()The name of the activity, for example "Flight 3441".The start time of the activity.voidsetUserObject(T userObject) toString()
-
Felddetails
-
DEFAULT_DURATION
-
name
-
id
-
userObject
-
startTime
-
endTime
-
-
Konstruktordetails
-
ActivityBase
public ActivityBase()Constructs a new activity. The initial start time will be set toInstant.now()and the end time will be equal toInstant.now()plus the value ofDEFAULT_DURATION.- Seit:
- 1.0
-
ActivityBase
Constructs a new activity with the given name. The initial start time will be set toInstant.now()and the end time will be equal toInstant.now()plus the value ofDEFAULT_DURATION.- Parameter:
name- the name of the activity- Seit:
- 1.0
-
ActivityBase
-
ActivityBase
-
-
Methodendetails
-
getName
-
getId
-
setUserObject
-
getUserObject
-
getStartTime
Beschreibung aus Schnittstelle kopiert:ActivityThe start time of the activity.- Angegeben von:
getStartTimein SchnittstelleActivity- Gibt zurück:
- the activity start time
-
getEndTime
Beschreibung aus Schnittstelle kopiert:ActivityThe end time of the activity.- Angegeben von:
getEndTimein SchnittstelleActivity- Gibt zurück:
- the activity end time
-
toString
-