All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.replay.ReplayEngine

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----ncsa.habanero.replay.ReplayEngine

public class ReplayEngine
extends Thread
ReplayEngine The thread that controls the execution of the replay.


Constructor Index

 o ReplayEngine(ReplayController, ReplaySocketGenerator, ReplayRemote)

Method Index

 o eminantContinue()
 o eminantHalt()
 o reactivateEvent(FileReplayMIStr)
 o run()
 o runUntil(long)
 o setReplayRate(double)
 o setTimeTracker(TimeTracker)
 o waitUntilEvent(TimeStampedStream, PriorityQueue)

Constructors

 o ReplayEngine
 public ReplayEngine(ReplayController parent,
                     ReplaySocketGenerator gen,
                     ReplayRemote remote)
Parameters:
parent - the parent
gen - the socket generator
remote - the remote control
Returns:
creates a replay object

Methods

 o waitUntilEvent
 protected boolean waitUntilEvent(TimeStampedStream next,
                                  PriorityQueue pqAllStreams)
Parameters:
next - the input stream
pqAllStreams - all the streams
Returns:
waits an appropriate amount of time, and then returns true if an error has occurred
 o reactivateEvent
 protected void reactivateEvent(FileReplayMIStr next)
Parameters:
next - the input stream
Returns:
extracts the next event and executes it
 o run
 public void run()
Returns:
opens the session, and replays the objects in it
Overrides:
run in class Thread
 o setReplayRate
 public void setReplayRate(double dNewRate)
Parameters:
dNewRate - the rate at which we replay the session
Returns:
changes the rate of replay
 o runUntil
 public void runUntil(long lTime)
Parameters:
lTime - when we should halt at
Returns:
sets the time when the execution should suspend
 o setTimeTracker
 public void setTimeTracker(TimeTracker t)
Returns:
sets the time tracker
 o eminantHalt
 public void eminantHalt()
Returns:
about to suspend the system
 o eminantContinue
 public void eminantContinue()
Returns:
about to resume the system

All Packages  Class Hierarchy  This Package  Previous  Next  Index