|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.nextgrid.api.env.AbstractTransientAttribute<T>
T - Value typepublic abstract class AbstractTransientAttribute<T>
Utility class for environment attributes that do not implement
Serializable.
Subclasses can implement logic for creating and configuring the internal value instance.
| Constructor Summary | |
|---|---|
AbstractTransientAttribute()
Creates a new instance. |
|
AbstractTransientAttribute(T value)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected abstract T |
createValue(nextgrid.api.env.ProcessEnvironment env)
Creates a new value instance, and optionally configures it. |
T |
getValue(nextgrid.api.env.ProcessEnvironment env)
Gets the held value. |
void |
setValue(T value)
Explicitly sets the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTransientAttribute()
public AbstractTransientAttribute(T value)
value - Initial value| Method Detail |
|---|
public T getValue(nextgrid.api.env.ProcessEnvironment env)
env - For instance creation/initialisation
public void setValue(T value)
value - New valueprotected abstract T createValue(nextgrid.api.env.ProcessEnvironment env)
env - For value configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||