public interface Parametrizable
extends java.lang.Cloneable
alternative to void setup(ParamSimState state, Parameter base);
:
void setup(int id, Parameter base, ParamSimState state);
where id
is for efficiency in aggregation scenarios:
image that you have SimState has an array of N Parametrizable objects
and they all must know their index (pass it along to others, maybe);
this way I avoid theta O(N^2) work.
Modifier and Type | Method and Description |
---|---|
Parameter |
defaultBase() |
void |
setup(ParamSimState state,
Parameter base) |
java.lang.Object |
simpleClone() |
void setup(ParamSimState state, Parameter base)
Parameter defaultBase()
java.lang.Object simpleClone()