|
|
||||||
|
faudes::HioModule Class Reference Detailed DescriptionRecurring structure in hierarchies designed according to the I/O based DES framework. The HioModule class is a composite pattern providing access to the components of a I/O-controller synthesis problem for a composite I/O-plant:
The plants of the subordinate HioModules and the environment form the uncontrolled behaviour of the HioModule. Definition at line 41 of file hio_module.h.
Constructor & Destructor Documentation◆ HioModule() [1/2]
constructor Definition at line 16 of file hio_module.cpp. ◆ HioModule() [2/2]
copy constructor Definition at line 21 of file hio_module.cpp. ◆ ~HioModule()
virtual destructor Definition at line 59 of file hio_module.h. Member Function Documentation◆ AdjustAlphabet()
This function converts an alphabet by renaming all events from "CBx_..." to "CBi_..."; as a standard all events used in this plugin have the following name format: "CBx_..."; Warning: This function does not preserves the attributes of the events!
Definition at line 374 of file hio_module.cpp. ◆ AdjustHioController()
AdjustHioController: convenience function derived from AdjustHioEnvironment() in order to adjust an IOController to any two IO-Plants which must enforce a well-defined specification. ◆ AdjustHioEnvironment()
AdjustEnvironment(): In order to describe the interaction between two IO-Plants we use the IO-Environment. This function adjusts the master copy (IOEnvironmentX) to the two IO-Plants. The position of the plants to each other must be set.
Definition at line 413 of file hio_module.cpp. ◆ AdjustHioPlant()
AdjustHioPlant(): convenience function (derived from AdjusTimedGenerator())to allow also the conversion of HioPlants.
Definition at line 288 of file hio_module.cpp. ◆ AdjusTimedGenerator()
This function converts a generator by renaming all events from "CBx_..." to "CBi_...";. all properties of the input generator are inherited by the output generator; as a standard all events used in this plugin have the following name format: "CBx_..."
Definition at line 220 of file hio_module.cpp. ◆ Children() [1/2]
Return Children of HioModule.
Definition at line 106 of file hio_module.cpp. ◆ Children() [2/2]
Set Children of HioModule.
Definition at line 101 of file hio_module.cpp. ◆ ChooseSpec()
chooseSpec: this function searches through an appropriate folder (based on the maximal capacity resulting from the ChildList) for available specifications and allows the user to choose one of the found specifications; After the user has chosen a specification, this function sets the IO-Plant, the constraints and the alphabets of the actual HioModule. The path must have the following format: "../Spec/" Warning: The computation of the IO-Controller is not triggered by this function, it must be started separately!
Definition at line 807 of file hio_module.cpp. ◆ Clear()
Clear all members of the HioModule. Definition at line 35 of file hio_module.cpp. ◆ Compute()
Compute: this function prepares the data required for HioSynth() function. If all data is available, HioSynth() is called and the resulting generator is the IOController for the given specification. Definition at line 880 of file hio_module.cpp. ◆ Controller() [1/2]
Return HioController of HioModule.
Definition at line 96 of file hio_module.cpp. ◆ Controller() [2/2]
Set HioController of HioModule.
Definition at line 91 of file hio_module.cpp. ◆ EncodeType()
function to encode to Type of the HioModule (function has only an informational character). *************** Interpretation of mType[] ******* ************* Capacity: mType[0] ********* ************* Take from left: mType[1] ********* ************* Take from right: mType[2] ********* ************* Deliver to left: mType[3] ********* ************* Deliver to left: mType[4] ********* *************************************************
Definition at line 1079 of file hio_module.cpp. ◆ EnvConstr() [1/2]
Return Environment-Constraint of HioModule.
Definition at line 127 of file hio_module.cpp. ◆ EnvConstr() [2/2]
Set Environment-Constraint of HioModule.
Definition at line 121 of file hio_module.cpp. ◆ Environment() [1/2]
Return HioEnvironment of HioModule.
Definition at line 116 of file hio_module.cpp. ◆ Environment() [2/2]
Set HioEnvironment of HioModule.
Definition at line 111 of file hio_module.cpp. ◆ FindController()
FindController(): this function searches in the folder of a chosen specification for an already computed IO-controller which enforces this specification. Furthermore must the IO-controller only be adjusted to the IO-Modules that we need to control. (to adjust call adjustController())
Definition at line 990 of file hio_module.cpp. ◆ Index() [1/2]
◆ Index() [2/2]
◆ InsChild()
Insert HioModule to list of children.
Definition at line 132 of file hio_module.cpp. ◆ MyPath()
MyPath(): based on the type of the HioModule, this is a convenience function to establish the local path where to Write/Read from. (This function is used up to now only by FindController() and SaveController())
Definition at line 1024 of file hio_module.cpp. ◆ Name() [1/2]
◆ Name() [2/2]
◆ OpConstr() [1/2]
Return Operator-Constraint of HioModule.
Definition at line 76 of file hio_module.cpp. ◆ OpConstr() [2/2]
Set Operator-Constraint of HioModule.
Definition at line 71 of file hio_module.cpp. ◆ Plant() [1/2]
Return HioPlant of HioModule.
Definition at line 86 of file hio_module.cpp. ◆ Plant() [2/2]
Set HioPlant of HioModule.
Definition at line 81 of file hio_module.cpp. ◆ Position()
This is a function to set the x and y position of the HioModule.
Definition at line 141 of file hio_module.cpp. ◆ ReadHioEnv()
This function reads the model describing the interaction of IO-Plants with the environment and sets the private variable mIOEnvironment. As a next logical step this generator must be adapted to the IO-Plants that interact with each other.
Definition at line 210 of file hio_module.cpp. ◆ ReadHioPlant()
This function reads the model from the given library and sets the following private variables of the HioModule. The library must contain the following files: plantCBx.gen - IO-Plant model of the simulated work unit (to set mIOPlant); constrP_CBx.gen - Operator constraints of the IO Plant model (if the model doesn't require any operator constraints at least an empty generator must be available) (mLcConstr) constrE_CBx.gen - Environment constraints of the IO Plant model (at least an empty generator must be available) (mLeConstr) for GUI purpose: symbolic picture of the work unit in *.png format The file names must be given as described above, and the events respect the following format: "CBx_..." (e.g.: CBx_rdy, CBx_full, CBx_stby,...)
todo: for GUI load image Definition at line 158 of file hio_module.cpp. ◆ RenameHioModule()
this function renames all relevant member of the HioModule. These are: mHioPlant, mLcConstr, mLeConstr, mHioEnvironment, mHioController, mName
Definition at line 771 of file hio_module.cpp. ◆ SaveController()
Save: this function saves the computed controller in the same folder with the specification that this controller enforces. Definition at line 1012 of file hio_module.cpp. ◆ TypeHioModule() [1/2]
function to call the Type of the HioModule
Definition at line 1068 of file hio_module.cpp. ◆ TypeHioModule() [2/2]
This is a function to set the type of the HioModule; by type we mean an array of length 5 where each position has a specific semnification: *************** Interpretation of mType[] ******* ************* Capacity: mType[0] ********* ************* Take from left: mType[1] ********* ************* Take from right: mType[2] ********* ************* Deliver to left: mType[3] ********* ************* Deliver to left: mType[4] ********* *************************************************
Definition at line 148 of file hio_module.cpp. ◆ Xpos()
function to call the x-Position of the HioModule
Definition at line 1055 of file hio_module.cpp. ◆ Ypos()
function to call the y-Position of the HioModule
Definition at line 1062 of file hio_module.cpp. Member Data Documentation◆ mChildren
Definition at line 512 of file hio_module.h. ◆ mController
Definition at line 509 of file hio_module.h. ◆ mEnvConstr
Definition at line 518 of file hio_module.h. ◆ mEnvironment
Definition at line 515 of file hio_module.h. ◆ mIndex
Definition at line 500 of file hio_module.h. ◆ mName
Definition at line 497 of file hio_module.h. ◆ mOpConstr
Definition at line 503 of file hio_module.h. ◆ mPlant
Definition at line 506 of file hio_module.h. ◆ mType
Definition at line 525 of file hio_module.h. ◆ mXpos
Definition at line 529 of file hio_module.h. ◆ mYpos
Definition at line 530 of file hio_module.h. The documentation for this class was generated from the following files: libFAUDES 2.32f --- 2024.12.22 --- c++ api documentaion by doxygen |