cellml_context::ModelList Interface Reference

cellml_context::ModelList Interface Reference
Inheritance diagram for cellml_context::ModelList:
Collaboration diagram for cellml_context::ModelList:

Public Member Functions

void addModelMonitor (in ModelNodeMonitor monitor)
 Adds a model monitor.
void removeModelMonitor (in ModelNodeMonitor monitor)
 Removes a model monitor.
void addListMonitor (in ModelListMonitor monitor)
 Adds a model list monitor.
void removeListMonitor (in ModelListMonitor monitor)
 Removes a model list monitor.
ModelNode makeNode (in cellml_api::Model mod)
 Makes a node suitable for passing to addModel.
void addModel (in ModelNode node)
 Adds a model to the list...
void removeModel (in ModelNode node)
 Removes a model from the list...
ModelNodeIterator iterateModelNodes ()
 Iterates over all model nodes in the list.
- Public Member Functions inherited from XPCOM::IObject
void add_ref ()
 Called to indicate that some code is keeping an owning reference to the object.
oneway void release_ref ()
 Removes a reference to an object which was created by some other means (e.g.
IObject query_interface (in utf8string id)
 Returns an IObject of the same implementation, which supports a specific interface.

Public Attributes

readonly attribute ModelNode parentNode
 Fetches the model node under which this list belongs, or null if this list has no parent.
- Public Attributes inherited from XPCOM::IObject
readonly attribute string objid
 Fetches the ID of the object.

Detailed Description

Definition at line 398 of file CellML_Context.idl.

Member Function Documentation

void cellml_context::ModelList::addListMonitor ( in ModelListMonitor  monitor)

Adds a model list monitor.

This will receive notifications of changes to the model list, and of changes to more derived model lists.

Parameters
monitorThe model list monitor to add.
void cellml_context::ModelList::addModel ( in ModelNode  node)

Adds a model to the list...

Parameters
nodeThe model node to add to the list... Note: node must be created in the same context as the ModelList. You cannot define your own nodes, or mix across contexts. However, the model itself can be created any way and in any context you like.
void cellml_context::ModelList::addModelMonitor ( in ModelNodeMonitor  monitor)

Adds a model monitor.

This will receive notifications for all models in the list, and all more derived models.

Parameters
monitorThe model monitor to add.
ModelNodeIterator cellml_context::ModelList::iterateModelNodes ( )

Iterates over all model nodes in the list.

Returns
an iterate to do the iteration.
ModelNode cellml_context::ModelList::makeNode ( in cellml_api::Model  mod)

Makes a node suitable for passing to addModel.

It does not actually add the node to the list.

Parameters
modThe model the node refers to.
Returns
The new node.
void cellml_context::ModelList::removeListMonitor ( in ModelListMonitor  monitor)

Removes a model list monitor.

Parameters
monitorThe model list monitor to remove.
void cellml_context::ModelList::removeModel ( in ModelNode  node)

Removes a model from the list...

Parameters
nodeThe model node to remove from the list...
void cellml_context::ModelList::removeModelMonitor ( in ModelNodeMonitor  monitor)

Removes a model monitor.

Parameters
monitorThe model monitor to remove.

Member Data Documentation

readonly attribute ModelNode cellml_context::ModelList::parentNode

Fetches the model node under which this list belongs, or null if this list has no parent.

Definition at line 459 of file CellML_Context.idl.