jfreerails.world.common
Interface ActivityIterator


public interface ActivityIterator


Method Summary
 double absolute2relativeTime(double absoluteTime)
          Converts an absolute time value to a time value relative to the start of the current activity.
 Activity getActivity()
           
 double getDuration()
           
 double getFinishTime()
          Returns the time the current activity ends.
 double getStartTime()
          Returns the time the current activity starts.
 FreerailsSerializable getState(double absoluteTime)
           
 boolean hasNext()
           
 void nextActivity()
           
 

Method Detail

hasNext

boolean hasNext()

nextActivity

void nextActivity()
                  throws java.util.NoSuchElementException
Throws:
java.util.NoSuchElementException

getStartTime

double getStartTime()
Returns the time the current activity starts.


getFinishTime

double getFinishTime()
Returns the time the current activity ends.


getDuration

double getDuration()

absolute2relativeTime

double absolute2relativeTime(double absoluteTime)
Converts an absolute time value to a time value relative to the start of the current activity. If absoluteTime > getFinishTime(), getDuration() is returned.


getState

FreerailsSerializable getState(double absoluteTime)

getActivity

Activity getActivity()