jasi.sim.user.model.activity
Interface Activity

All Superinterfaces:
EventListener, java.io.Serializable
All Known Implementing Classes:
AbstractActivityBean, LinearActivity

public interface Activity
extends EventListener

Interface for simulation activities.


Method Summary
 void finish()
          The activity finishes.
 Time getEndTime()
          Get the expected end time of this activity.
 double getGrade(Time time)
          Get the grade of completeness of this activity.
 Time getStartTime()
          Get the start time of this activity.
 void start()
          The activity is started.
 
Methods inherited from interface jasi.sim.basic.event.EventListener
execute
 

Method Detail

getStartTime

Time getStartTime()
Get the start time of this activity.

Returns:
The start time.

getEndTime

Time getEndTime()
Get the expected end time of this activity.

Returns:
The end time.

getGrade

double getGrade(Time time)
Get the grade of completeness of this activity.

Parameters:
time - The time of the update.
Returns:
The grade of completeness.

start

void start()
The activity is started.


finish

void finish()
The activity finishes.