|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
psimjava.Pobject
psimjava.Sched
psimjava.Process
psimjava.Comm_timer
public class Comm_timer
PsimJ Java package for OO simulation Communication timer.
An instance of this process type is used by several processes to cause a timeout when communicating.
Object-oriented simulation, process interaction approach.
(C) J. M. Garrido. June 2000, 2003, 2004
Class for controlling Communication timer (used by most processes when communicating)
File: Comm_timer.java
| 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 | |
|---|---|
Comm_timer()
|
|
Comm_timer(Process proc_comm,
double wait_p,
Waitq channel,
boolean send_rec)
Constructor for the communication timer object |
|
| Method Summary | |
|---|---|
void |
Main_body()
Main body for a communication timer object does not need to be redefined in user model. |
void |
set_comm_timer(Process proc_comm,
double wait_p,
Waitq channel,
boolean send_rec)
This function sets the communication timer |
| Methods inherited from class psimjava.Process |
|---|
clear_int_lev, clear_int, comm_wait, deactivate, delay, get_name, get_remain_t, idle, int_level, int_level, is_terminated, p_interrupt, reactivate, run, schedat, set_comm_flag, start, terminate |
| Methods inherited from class psimjava.Sched |
|---|
get_clock, rdstate, rdtime, set_state |
| 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Comm_timer(Process proc_comm,
double wait_p,
Waitq channel,
boolean send_rec)
proc_comm - process waiting to communicatewait_p - period to wait for timeoutchannel - xommunication channelsend_rec - flag with value true if proc_comm is sender, othewise falsepublic Comm_timer()
| Method Detail |
|---|
public void set_comm_timer(Process proc_comm,
double wait_p,
Waitq channel,
boolean send_rec)
proc_comm - process waiting to communicatewait_p - period to wait for timeoutchannel - communication channelsend_rec - flag with value true if proc_comm is sender, othewise falsepublic void Main_body()
Main_body in class Process
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||