Class CResource

java.lang.Object
  extended byjava.lang.Thread
      extended byeduni.simjava.Sim_entity
          extended byCResource
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable

public class CResource
extends eduni.simjava.Sim_entity

Instance of this class represents a resource in classical subsystem


Field Summary
static int ParticipationRequest
           
static int SendFreeAgainToGMA
           
static int SendTerminationAcknowledgement
           
static int SendWorkDoneAcknowledgement
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CResource(double delay, ResourceInfoToScheduler resourceinfotoscheduler)
          Creates a new instance of CResource
 
Method Summary
 void body()
          method is used to define behavior of entity
 
Methods inherited from class eduni.simjava.Sim_entity
add_generator, add_param, add_port, clone, get_id, get_name, get_port, get_port, get_stat, run, send_on, set_invisible, set_stat, sim_cancel, sim_completed, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_pause_for, sim_pause_for, sim_pause_until, sim_pause_until, sim_pause, sim_process_for, sim_process_for, sim_process_until, sim_process_until, sim_process, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait_for, sim_wait_for, sim_wait, sim_waiting, sim_waiting
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ParticipationRequest

public static final int ParticipationRequest
See Also:
Constant Field Values

SendWorkDoneAcknowledgement

public static final int SendWorkDoneAcknowledgement
See Also:
Constant Field Values

SendFreeAgainToGMA

public static final int SendFreeAgainToGMA
See Also:
Constant Field Values

SendTerminationAcknowledgement

public static final int SendTerminationAcknowledgement
See Also:
Constant Field Values
Constructor Detail

CResource

public CResource(double delay,
                 ResourceInfoToScheduler resourceinfotoscheduler)
Creates a new instance of CResource

Method Detail

body

public void body()
method is used to define behavior of entity