defaultModelObjectProto-class {dynamicGraph}R Documentation

Class "defaultModelObjectProto"

Description

An example class for the model object of dynamicGraph.

Objects from the Class

Objects can be created by calls of the form new("defaultModelObjectProto", ...).

This is an example of the object for interface between dynamicGraphMain and your models. The model object of the call of dynamicGraphMain should have the methods modifyModel and testEdge. When the graph is modified, by adding or dropping vertices or edge, the method modifyModel is called on the argument object of dynamicGraphMain. If an object is returned in the list of the returned value from modifyModel then object in dynamicGraphMain is replaced by this object, and the object is also assigned in the top level environment, if objectName was given to dynamicGraphMain.

The methods testEdge of object should return an object with the methods label and width for labeling edges, see newDefaultTestObject.

Slots

name:
Object of class "character": The name of the model.

Methods

modifyModel
signature(object = "defaultModelObjectProto"): ...
testEdge
signature(object = "defaultModelObjectProto"): ...

Author(s)

Jens Henrik Badsberg

See Also

defaultTestObjectProto-class, newDefaultModelObject, newDefaultTestObject.


[Package Contents]