Groups all the base fuctions available for any model plugin.
More...
Groups all the base fuctions available for any model plugin.
For more information: https://evoplex.org/docs/creating-plugins
- See also
- AbstractPlugin, AbstractGraph, AbstractModel
◆ afterLoop()
void evoplex::AbstractModel::afterLoop |
( |
| ) |
|
|
inlineoverridevirtual |
◆ beforeLoop()
void evoplex::AbstractModel::beforeLoop |
( |
| ) |
|
|
inlineoverridevirtual |
◆ customOutputs()
Values evoplex::AbstractModel::customOutputs |
( |
const Values & |
inputs | ) |
const |
|
inlineoverridevirtual |
Allows implementing custom outputs for the model plugin.
A "custom output" can be plotted or stored in a file through Evoplex. The inputs
must be defined in the metadata.json file. If an experiment requests some custom output, this function will be called once at each time step, receiving the requested inputs
. The default implementation of this function does nothing.
- Returns
- the Value output for each of the
inputs
Implements evoplex::AbstractModelInterface.
◆ edge() [1/2]
const Edge & evoplex::AbstractModel::edge |
( |
int |
edgeId | ) |
const |
|
inline |
Returns the Edge corresponding to edgeId
.
- Parameters
-
- Exceptions
-
std::out_of_range | if no such data is present. |
◆ edge() [2/2]
const Edge & evoplex::AbstractModel::edge |
( |
int |
originId, |
|
|
int |
neighbourId |
|
) |
| const |
|
inline |
Returns the Edge that connects originId
to neighbourId
.
- Parameters
-
originId | A valid node id. |
neighbourId | A valid node id. |
- Exceptions
-
std::out_of_range | if no such data is present. |
◆ edges()
const Edges & evoplex::AbstractModel::edges |
( |
| ) |
const |
|
inline |
◆ node()
Node evoplex::AbstractModel::node |
( |
int |
nodeId | ) |
const |
|
inline |
Gets the Node corresponding to nodeId
.
- Parameters
-
- Exceptions
-
std::out_of_range | if no such data is present. |
◆ nodes()
const Nodes & evoplex::AbstractModel::nodes |
( |
| ) |
const |
|
inline |