public class Signal extends java.lang.Object implements Collectible, ModelInstanceAware, EntityWithId
| Constructor and Description |
|---|
Signal(long id,
ModelInstance modelInstance,
Value value,
java.lang.String sourceDescription)
Creates new instance.
|
Signal(ModelInstance modelInstance,
Value value,
java.lang.String sourceDescription)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect()
Removes itself from the process.
|
Signal |
createCopy(ModelInstance targetModelInstance)
Returns deep copy.
|
void |
finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
Copy references.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
java.util.Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
java.lang.String |
getSourceDescription()
Gets the description of the signals source.
|
Value |
getValue()
Returns the value.
|
boolean |
isConsumed()
Returns true if consumed.
|
boolean |
isInserted()
Returns true if inserted.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
void |
setConsumed(boolean consumed)
Sets consumed.
|
void |
setInserted(boolean inserted)
Sets inserted.
|
void |
setSourceDescription(java.lang.String description) |
SSignal |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
java.lang.String |
toString() |
public Signal(ModelInstance modelInstance, Value value, java.lang.String sourceDescription)
modelInstance - value - sourceDescription - the description of the signals sourcejava.lang.NullPointerException - if modelInstance or value is nullpublic Signal(long id,
ModelInstance modelInstance,
Value value,
java.lang.String sourceDescription)
id - modelInstance - value - sourceDescription - the description of the signals sourcejava.lang.NullPointerException - if modelInstance or value is nullpublic SSignal toSerializable(SModelInstance smi, MarshallerConfig config)
smi - config - public long getId()
EntityWithIdgetId in interface EntityWithIdpublic Value getValue()
public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic boolean isConsumed()
public void setConsumed(boolean consumed)
consumed - public boolean isInserted()
public void setInserted(boolean inserted)
inserted - public java.lang.String getSourceDescription()
public void setSourceDescription(java.lang.String description)
description - the description of the sourcegetSourceDescription()public boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic java.util.Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic Signal createCopy(ModelInstance targetModelInstance)
targetModelInstance - public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.