Package org.yamcs.activities
Class Activity
java.lang.Object
org.yamcs.activities.Activity
- All Implemented Interfaces:
Comparable<Activity>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
Stop a successful activityvoid
completeExceptionally
(String failureReason, User user) Stop an activity.getArgs()
getId()
int
getSeq()
long
getStart()
long
getStop()
getType()
boolean
void
setComment
(String comment) void
void
setFailureReason
(String failureReason) void
setStatus
(ActivityStatus status) toTuple()
-
Constructor Details
-
Activity
-
Activity
-
-
Method Details
-
getId
-
getStatus
-
setStatus
-
getStart
public long getStart() -
getSeq
public int getSeq() -
getType
-
getArgs
-
getStartedBy
-
getStoppedBy
-
getComment
-
setComment
-
getDetail
-
setDetail
-
getStop
public long getStop() -
getFailureReason
-
setFailureReason
-
isStopped
public boolean isStopped() -
cancel
-
complete
Stop a successful activity -
completeExceptionally
Stop an activity. If failureReason is null, the activity is considered successful. -
toTuple
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Activity>
-