public class DefaultTimeoutHandler extends NodeImpl implements ExecutionPhaseListener, TimeoutHandler
| Modifier and Type | Field and Description |
|---|---|
protected static LongProperty |
durationProperty |
static String |
PROPERTY_DURATION |
static String |
PROPERTY_REACTION_TIME |
protected static LongProperty |
reactionTimeProperty |
protected Timer |
timer
Timer used for the timeout.
|
| Constructor and Description |
|---|
DefaultTimeoutHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelTimeout()
Cancels the timeout.
|
long |
getDefaultTimerDuration() |
long |
getReactionTime() |
protected Timer |
getTimer() |
protected long |
getTimerStartTimestamp() |
boolean |
isLogTrialProperties() |
void |
processExecutionPhase(ExecutionContext context) |
void |
setDefaultTimerDuration(long defaultTimerDuration) |
void |
setLogTrialProperties(boolean logTrialProperties)
Set whether timeout information should be logged in the trial.
|
void |
setReactionTime(long reactionTime) |
void |
startTimeout(ExecutionContext context)
Starts the timer.
|
protected void |
timerElapsed() |
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParentclearProperties, getKeys, getProperty, removeProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getId, getKeys, getProperty, removeProperty, setPropertypublic static final String PROPERTY_DURATION
public static final String PROPERTY_REACTION_TIME
protected Timer timer
protected static LongProperty durationProperty
protected static LongProperty reactionTimeProperty
public void startTimeout(ExecutionContext context)
startTimeout in interface TimeoutHandlerpublic void cancelTimeout()
cancelTimeout in interface TimeoutHandlerprotected void timerElapsed()
protected long getTimerStartTimestamp()
public void processExecutionPhase(ExecutionContext context)
processExecutionPhase in interface ExecutionPhaseListenerprotected Timer getTimer()
public boolean isLogTrialProperties()
public void setLogTrialProperties(boolean logTrialProperties)
public long getDefaultTimerDuration()
getDefaultTimerDuration in interface TimeoutHandlerpublic void setDefaultTimerDuration(long defaultTimerDuration)
setDefaultTimerDuration in interface TimeoutHandlerpublic long getReactionTime()
public void setReactionTime(long reactionTime)
Copyright © 2012. All Rights Reserved.