buildModelClass: It builds an object of a pre-specified class.
Description
buildModelClass is generic function that calls a method
to create a object base on model's name.
Usage
buildModelClass(x, var.names, init.cond, model.parms, prop.func = NULL, state.var = NULL, state.change.matrix = NULL)
Arguments
x
is an empty object of a class requested.
var.names
a list with variable names of the network:
the donor node, the reciever node, the time when each connection between
donor to the reciever happened and the weight of these connection.
The variables names must be "from", "to", "Time" and "arc", respectively. init.cond
a named vector with initial conditions. model.parms
a named vector with model's parameters. prop.func
a character vector with propensity functions
of a generic node. See references for more details state.var
a character vector with the state varialbes of
the propensity functions. state.change.matrix
is a state-change matrix. See references
for more details Value
An object of the class requested.