|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFlag
public class Flag
This class represents a flag. It can be used to check whether the simulation program has finished.
Field Summary | |
---|---|
private int |
buffer
Shared by two or more threads. |
Constructor Summary | |
---|---|
Flag()
|
Method Summary | |
---|---|
int |
get()
Returns the value got from buffer. |
void |
set(int value)
Places value into the buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int buffer
Constructor Detail |
---|
public Flag()
Method Detail |
---|
public void set(int value)
value
- int representing the value to be put into the buffer.public int get()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |