org.jactr.core.runtime.profile
Class ProfilingModelRunner

java.lang.Object
  extended by org.jactr.core.runtime.DefaultModelRunner
      extended by org.jactr.core.runtime.profile.ProfilingModelRunner
All Implemented Interfaces:
java.lang.Runnable

public class ProfilingModelRunner
extends DefaultModelRunner

tracks various performance metrics

Author:
developer

Constructor Summary
ProfilingModelRunner(java.util.concurrent.ExecutorService service, IModel model, ICycleProcessor cycleRunner)
           
 
Method Summary
 double getActualCycleTime()
          return just the time spent in cycle()
 double getActualEventTime()
           
 double getActualWaitTime()
          return just the time spent waiting for the clock
 double getRealTimeFactor()
           
 double getSimulatedTime()
           
 long getTotalCycles()
           
 double getTotalCycleTime()
          comprised of both actual processing time and waiting time
 
Methods inherited from class org.jactr.core.runtime.DefaultModelRunner
run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilingModelRunner

public ProfilingModelRunner(java.util.concurrent.ExecutorService service,
                            IModel model,
                            ICycleProcessor cycleRunner)
Parameters:
service -
model -
cycleRunner -
Method Detail

getTotalCycles

public long getTotalCycles()

getTotalCycleTime

public double getTotalCycleTime()
comprised of both actual processing time and waiting time

Returns:

getActualCycleTime

public double getActualCycleTime()
return just the time spent in cycle()

Returns:

getActualWaitTime

public double getActualWaitTime()
return just the time spent waiting for the clock

Returns:

getActualEventTime

public double getActualEventTime()

getSimulatedTime

public double getSimulatedTime()

getRealTimeFactor

public double getRealTimeFactor()