Class Resource

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

public class Resource
extends eduni.simjava.Sim_entity

instance of this class represents a resource


Field Summary
static int ParticipationRequest
           
static int SendAskToGMA
           
static int SendFreeAgainToGMA
           
static int SendOutputToUser
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Resource(double delay, ResourceInfoToGMA resourceinfotogma)
          Creates a new instance of Resource
Resource(double delay, ResourceInfoToGMA resourceinfotogma, double PercentDeclineInAsk)
          Creates a new instance of Resource
 
Method Summary
 void body()
          defines the behavior of a resource in Auction subsystem
 double getPercentDeclineInAsk()
           
 
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

SendOutputToUser

public static final int SendOutputToUser
See Also:
Constant Field Values

SendFreeAgainToGMA

public static final int SendFreeAgainToGMA
See Also:
Constant Field Values

SendAskToGMA

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

Resource

public Resource(double delay,
                ResourceInfoToGMA resourceinfotogma)
Creates a new instance of Resource


Resource

public Resource(double delay,
                ResourceInfoToGMA resourceinfotogma,
                double PercentDeclineInAsk)
Creates a new instance of Resource

Method Detail

getPercentDeclineInAsk

public double getPercentDeclineInAsk()

body

public void body()
defines the behavior of a resource in Auction subsystem