|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsim.process.DynamicNode
jsim.process.Signal
public class Signal
The Signal class allows resource capacity to be altered via signals. A Signal object can affect the behavior of servers, by alternatively, increasing or decreasing the number of tokens (service units).
| Field Summary |
|---|
| Fields inherited from class jsim.process.DynamicNode |
|---|
costs, duration, occupancy, outgoing, props, trc |
| Constructor Summary | |
|---|---|
Signal(int id,
Prop props,
Server serverList,
Transport[] outgoing,
AnimationQueue sharedQueue)
Constructs a Signal to control the operation of Servers. |
|
Signal(Prop props,
Server serverList,
Transport[] outgoing)
Constructs a Signal to control the operation of Servers. |
|
| Method Summary | |
|---|---|
boolean |
getStopped()
This method returns the status of the Signal. |
void |
run()
The run method of Signal. |
void |
start()
This method starts the Signal thread. |
void |
stop()
This method stops the Signal thread. |
| Methods inherited from class jsim.process.DynamicNode |
|---|
getNodeStats, getOutgoing, getProps, setBatchProperties, setPrimary, setProps |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Signal(Prop props,
Server serverList,
Transport[] outgoing)
property - properties of nodeserverList - list of affected serversoutgoing - outgoing transports
public Signal(int id,
Prop props,
Server serverList,
Transport[] outgoing,
AnimationQueue sharedQueue)
property - properties of nodeserverList - list of affected serversoutgoing - outgoing transports| Method Detail |
|---|
public void start()
public void stop()
public boolean getStopped()
public void run()
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||