public abstract class AbstractAsynchronousModule extends AbstractModule implements IAsynchronousModule, IParameterized
getSetableParameters()
STRICT_SYNCHRONIZATION_PARAM
Constructor and Description |
---|
AbstractAsynchronousModule(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read
|
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set.
|
boolean |
isStrictSynchronizationEnabled() |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
setStrictSynchronizationEnabled(boolean enableStrict) |
BlockingTimedEvent |
synchronizedTimedEvent(double startTime,
double blockAtTime)
create a new synchronization point.
|
createBuffers, delayedFuture, delayedFuture, dispose, getExecutor, getModel, getName, getSafeName, immediateFuture, immediateReturn, initialize, install, setExecutor, uninstall
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExecutor
dispose, getModel, getName, initialize, install, reset
uninstall
getAdapter
public AbstractAsynchronousModule(java.lang.String name)
public boolean isStrictSynchronizationEnabled()
isStrictSynchronizationEnabled
in interface IAsynchronousModule
public void setStrictSynchronizationEnabled(boolean enableStrict)
setStrictSynchronizationEnabled
in interface IAsynchronousModule
public BlockingTimedEvent synchronizedTimedEvent(double startTime, double blockAtTime)
IAsynchronousModule
BlockingTimedEvent.abort()
is called. IAsynchronousModule.isStrictSynchronizationEnabled()
is true, the event will be
created and queued. If false, the event will be created, immediately
aborted, and not queued. IAsynchronousModule.isStrictSynchronizationEnabled()
at all. Modules that
wish to synchronize should just create the BlockingTimedEvent
via
this call and make their module request. Upon completion of the request,
the block is aborted.synchronizedTimedEvent
in interface IAsynchronousModule
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
key
- Description of the Parameter