|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.algorithm.pisa.State
public class State
Reads and writes PISA state files.
| Constructor Summary | |
|---|---|
State(File file)
Constructs a state indicator backed by the specified file. |
|
| Method Summary | |
|---|---|
int |
get()
Reads the state. |
void |
set(int state)
Sets the state. |
void |
waitFor(int state)
Blocks until the state becomes the specified value. |
int |
waitWhile(int state)
Blocks while the state remains at the specified value, returning the new state value when it changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State(File file)
file - the state file| Method Detail |
|---|
public int get()
throws IOException
IOException - if an I/O error occurred
public void set(int state)
throws IOException,
InterruptedException
state - the state
IOException - if an I/O error occurred
InterruptedException - if Thread.sleep(long) was
interrupted
public void waitFor(int state)
throws IOException,
InterruptedException
state - the state to wait for
IOException - if an I/O error occurred
InterruptedException - if Thread.sleep(long) was
interrupted
public int waitWhile(int state)
throws IOException,
InterruptedException
state - the state to wait on
IOException - if an I/O error occurred
InterruptedException - if Thread.sleep(long) was
interrupted
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||