YANE-Framework 1.1.0
Public Member Functions | Protected Attributes

yane::NetworkedControl::Controller Class Reference

Class for simulating a distributed plant - sensor - controller - actuator setting.

Inheritance diagram for yane::NetworkedControl::Controller:
[legend]
Collaboration diagram for yane::NetworkedControl::Controller:
[legend]

List of all members.

Public Member Functions

 Controller (yane::Model::Model *model, int horizon, int prediction, IOInterface *iface, yane::Utils::DebugMaster *debugmaster=0, yane::Utils::StatisticsMaster *statisticsmaster=0)
 Constructor.
yane::Model::Modelmodel ()
 Function to return the used class yane::Model::Model object.
 ~Controller ()
 Destructor.

Protected Attributes

yane::Utils::DebugMaster_debugmaster
 Pointer of the class yane::Utils::DebugMaster object used for debugging.
int _horizon
 Length of the control sequence to be computed.
IOInterface_interface
 Pointer of the class yane::NetworkedControl::IOInterface object used for communication purposes.
yane::Model::Model_model
 Pointer of the class yane::Model::Model object used for optimization and simulation.
int _prediction
 Length of the prediction between current time and the first time instant the computed control shall be valid.
yane::Utils::StatisticsMaster_statisticsmaster
 Pointer of the class yane::Utils::StatisticsMaster object used for producing statistics.

Constructor & Destructor Documentation

yane::NetworkedControl::Controller::Controller ( yane::Model::Model model,
int  horizon,
int  prediction,
IOInterface iface,
yane::Utils::DebugMaster debugmaster = 0,
yane::Utils::StatisticsMaster statisticsmaster = 0 
)

Constructor

Parameters:
modelPointer of the class yane::Model::Model object used for optimization and simulation
horizonLength of the horizon
predictionNumber of preceding prediction steps
interfacePointer of the input/output interface of class yane::MPC::IOInterface
dmPointer of the debugmanager of class yane::Utils::DebugMaster
smPointer of the statistics manager of class yane::Utils::StatisticsMaster

Member Function Documentation

yane::Model::Model * yane::NetworkedControl::Controller::model ( )

Function to return the used class yane::Model::Model object

Returns:
Used class yane::Model::Model object