|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasi.sim.basic.value.AbstractSimValueType jasi.sim.basic.value.AbstractComparableObject<Element> jasi.sim.basic.element.AbstractElementBean jasi.sim.user.model.activity.AbstractActivityBean
public abstract class AbstractActivityBean
Implementation of simulation activities.
Field Summary |
---|
Fields inherited from interface jasi.sim.basic.element.Element |
---|
COMPARATOR |
Constructor Summary | |
---|---|
protected |
AbstractActivityBean()
Constructor of ActivityBean. |
protected |
AbstractActivityBean(Id id)
Construct of ActivityBean. |
Method Summary | |
---|---|
void |
execute(Event event)
Handle or execute a pushed event by this event listener/model. |
Time |
getEndTime()
Get the expected end time of this activity. |
Time |
getStartTime()
Get the start time of this activity. |
void |
setEndTime(Time endTime)
Set the end time. |
void |
setStartTime(Time startTime)
Set the start time. |
void |
start()
The activity is starting. |
void |
start(Calendar calendar)
The activity is starting. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class jasi.sim.basic.element.AbstractElementBean |
---|
acceptDelete, compareTo, delete, elements, equals, get, getId, getKey, hashCode, isDeleted, registered, set, setId, setKey |
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject |
---|
isEQ, isGE, isGT, isLE, isLT, isNE |
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType |
---|
getContent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jasi.sim.user.model.activity.Activity |
---|
finish, getGrade |
Constructor Detail |
---|
protected AbstractActivityBean()
protected AbstractActivityBean(Id id)
id
- The simulation element's ID.Method Detail |
---|
public final void setStartTime(Time startTime)
startTime
- The startTime.public final Time getStartTime()
getStartTime
in interface Activity
public final void setEndTime(Time endTime)
endTime
- The startTime.public final Time getEndTime()
getEndTime
in interface Activity
public final void execute(Event event)
execute
in interface EventListener
event
- The popped event to be handled by this listener.public final void start(Calendar calendar)
calendar
- The calendar.Activity.start()
public final void start()
start
in interface Activity
Activity.start()
public java.lang.String toString()
toString
in class AbstractElementBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |