openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | List of all members
oETCS::GEN::CVMGenerator Class Reference

generator for virtual machine configuration for Xen hypervisior More...

#include <VMgenerator.h>

Inheritance diagram for oETCS::GEN::CVMGenerator:
Inheritance graph
Collaboration diagram for oETCS::GEN::CVMGenerator:
Collaboration graph

Public Member Functions

virtual void Generate (::DSM::CSyntaxTree *const pSyntaxTree,::std::ostream &OutStream) throw (::oETCS::GEN::Error::CException)
 generation method
virtual void GeneratePSM (::DSM::CSyntaxTree *const pSyntaxTree,::std::ostream &OutStream) throw (::oETCS::GEN::Error::CException)
 generation method
bool HasPSM (::DSM::CSyntaxTree *const pSyntaxTree) throw ()
 checks, if syntax tree model has a PSM part

Detailed Description

generator for virtual machine configuration for Xen hypervisior

Definition at line 49 of file VMgenerator.h.

Member Function Documentation

void oETCS::GEN::CVMGenerator::Generate ( ::DSM::CSyntaxTree *const  pSyntaxTree,
::std::ostream &  OutStream 
) throw (::oETCS::GEN::Error::CException)
virtual

generation method

Generates from a syntax tree the corresponding output.

Remarks
only generates the PIM configuration
Parameters
[in]pTreepointer to the syntax tree used for generation
[in]OutStreamStream object used for output

Implements oETCS::GEN::CGenerator.

Definition at line 80 of file VMgenerator.cpp.

References DSM::CGOPPRRSyntaxTree::GetRootGraph(), and GOPPRR::CNonProperty::m_ID.

Referenced by oETCS::GEN::CMain::Execute().

Here is the call graph for this function:

Here is the caller graph for this function:

void oETCS::GEN::CVMGenerator::GeneratePSM ( ::DSM::CSyntaxTree *const  pSyntaxTree,
::std::ostream &  OutStream 
) throw (::oETCS::GEN::Error::CException)
virtual

generation method

Generates from a syntax tree the corresponding output.

Remarks
only generates the PSM configuration, if applicable
Parameters
[in]pTreepointer to the syntax tree used for generation
[in]OutStreamStream object used for output

Definition at line 154 of file VMgenerator.cpp.

References DSM::CGOPPRRSyntaxTree::GetRootGraph(), and GOPPRR::CNonProperty::m_ID.

Referenced by oETCS::GEN::CMain::Execute().

Here is the call graph for this function:

Here is the caller graph for this function:

bool oETCS::GEN::CVMGenerator::HasPSM ( ::DSM::CSyntaxTree *const  pSyntaxTree) throw ()

checks, if syntax tree model has a PSM part

Returns
true, if PSM is included

Definition at line 34 of file VMgenerator.cpp.

References DSM::CGOPPRRSyntaxTree::GetProject(), and GOPPRR::CProject::m_PropertySet.

Referenced by oETCS::GEN::CMain::Execute().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
The openETCS library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the openETCS library. If not, see "http://www.gnu.org/licenses/.