v_sim.Sourceable¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
node property associated to the object |
||
r/w |
name of the source property |
Signals¶
None
Fields¶
None
Class Details¶
- class v_sim.Sourceable¶
- Bases:
- Structure:
Interface object.
New in version 3.8.
- dispose()¶
This method should be called in the dispose() method of self to ensure that any data referenced in a
v_sim.SourceableDatastructure are released.New in version 3.8.
- follow(data)¶
- Parameters:
data (
v_sim.DataorNone) – av_sim.Dataobject.- Returns:
Trueif the followed data is actually changed.- Return type:
Set the
v_sim.NodeValuesself is based on by polling the node property of data referenced by the source name of self (seev_sim.Sourceable.setSource()). If self is not following any named property, this call does nothing. If self is following a named property and data isNone, the node model is set toNonealso.New in version 3.8.
- getConstNodeModel()¶
- Returns:
the associated model.
- Return type:
Retrieves associated model, if any.
New in version 3.8.
- getNodeModel()¶
- Returns:
the associated model.
- Return type:
Retrieves associated model, if any.
New in version 3.8.
- getSource()¶
-
Retrieves the name of the property model should be bound to retrieve its
v_sim.NodeValuesmodel.New in version 3.8.
- init()¶
Method used in initialisation of the object to allocate a
v_sim.SourceableDatastructure. This structure should be store by the implementer of the sourceable interface and returned by the getSource() virtual method.New in version 3.8.
- setNodeModel(model)¶
- Parameters:
model (
v_sim.NodeValuesorNone) – av_sim.NodeValuesobject.- Returns:
Trueif changed.- Return type:
Set model to self.
New in version 3.8.
- setSource(source)¶
- Parameters:
source (
str) – a property name.- Returns:
Trueif the value is actually changed.- Return type:
self can be bound to a specific
v_sim.NodeValuesdefined by its name. When source is notNoneand self attached to av_sim.Data, its model is changed to match anyv_sim.NodeValuesof its currentv_sim.NodeArraywith the label source.New in version 3.8.
- do_modelChanged() virtual¶
called whenever the underlying model is changed.
Property Details¶
- v_sim.Sourceable.props.model¶
- Name:
model- Type:
- Default Value:
- Flags:
node property associated to the object