public class StandardStochasticAccessor<S extends AbstractStochasticItem> extends AbstractStochasticAccessInfo implements java.io.Serializable
Constructor and Description |
---|
StandardStochasticAccessor(java.lang.Class<?> owner,
java.lang.String id)
Create an 'empty' accessor, normally held statically to access the per-run
stochastic item across all instances of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
addForRun(S stochItem) |
S |
getForRun() |
static void |
registerAccessorFreeStochItem(java.lang.Class<?> owner,
java.lang.String id,
AbstractStochasticItem stochItem)
Register a stochastic item for use without an accessor for access.
|
void |
removeMe(AbstractStochasticItem stochItem)
Exposed for technical reasons; not for JSIT user use.
|
getFullID, getOwnerName
public StandardStochasticAccessor(java.lang.Class<?> owner, java.lang.String id)
owner
- The class owning (using) the stochastic item.id
- A user-provided ID to define this stochastic item (used in
stochastic control configuration files together with the
owning class name).public static void registerAccessorFreeStochItem(java.lang.Class<?> owner, java.lang.String id, AbstractStochasticItem stochItem)
owner
- The class owning (using) the stochastic item.id
- A user-provided ID to define this stochastic item (used in
stochastic control configuration files together with the
owning class name).stochItem
- The stochastic item to register.public void addForRun(S stochItem)
public S getForRun()
public void removeMe(AbstractStochasticItem stochItem)
removeMe
in class AbstractStochasticAccessInfo