psimjava
Class Sched

java.lang.Object
  extended by java.lang.Thread
      extended by psimjava.Pobject
          extended by psimjava.Sched
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
Process

public class Sched
extends Pobject

Top level class for scheduling processes (implemented as Java threads).

PsimJ package for process interaction approach to Object-Oriented discrete-event simulation. (C) Jose M. Garrido, June 2000, August 2003, Oct 2004, 2007


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected Sched()
           
 
Method Summary
 double get_clock()
          Get current value of simulation clock
 int rdstate()
          Get the state of an object (RUNNING, IDLE, TERMINATED)
 double rdtime()
           
 void set_state(int lstate)
           
 
Methods inherited from class psimjava.Pobject
get_prio, set_prio
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sched

protected Sched()
Method Detail

get_clock

public double get_clock()
Get current value of simulation clock

Returns:
double Returns simulation time.

rdtime

public double rdtime()

rdstate

public int rdstate()
Get the state of an object (RUNNING, IDLE, TERMINATED)


set_state

public void set_state(int lstate)