|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.experiments.AbstractExperimentHandle
public abstract class AbstractExperimentHandle
Abstract implementation of ExperimentHandle. Classes implementing this abstract class should count down the experimentRunningLatch, getResult() waits on this latch.
Field Summary | |
---|---|
protected java.lang.Exception |
exception
Exception that was raised during execution of the experiment. |
protected java.util.concurrent.CountDownLatch |
experimentRunningLatch
Latch where thread can wait for results of the experiment. |
protected ExperimentResult |
result
Result of this experiment, it is set from the user code setResult() |
protected Flag<ExperimentExecutionState> |
stateFlag
Flag with a state of execution. |
Constructor Summary | |
---|---|
AbstractExperimentHandle()
Creates a new instance of AbstractHandle |
Method Summary | |
---|---|
java.lang.Exception |
getException()
Blocking method returning exception that may have been raised during execution of the experiment. |
Flag<ExperimentExecutionState> |
getExperimentExecutionFlag()
|
ExperimentResult |
getResult()
Returns result of the experiment, blocks if called during execution of the experiment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.pogamut.experiments.ExperimentHandle |
---|
getName, stop |
Field Detail |
---|
protected java.util.concurrent.CountDownLatch experimentRunningLatch
protected java.lang.Exception exception
protected ExperimentResult result
protected Flag<ExperimentExecutionState> stateFlag
Constructor Detail |
---|
public AbstractExperimentHandle()
Method Detail |
---|
public ExperimentResult getResult() throws java.lang.Exception
getResult
in interface ExperimentHandle
java.lang.Exception
- exception that may have been raised during execution of the experimentpublic java.lang.Exception getException()
ExperimentHandle
getException
in interface ExperimentHandle
public Flag<ExperimentExecutionState> getExperimentExecutionFlag()
getExperimentExecutionFlag
in interface ExperimentHandle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |