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

OCL constraint checker for a GOPPRR model/project. More...

#include <ConstraintChecker.h>

Collaboration diagram for GOPPRR::CConstraintChecker:
Collaboration graph

Public Member Functions

bool Check (GOPPRR::CProject *const pProject, const ::std::string &OCLConstraints,::std::ostream *const pOutStream=0) const throw (::GOPPRR::Error::CException)
 checks a GOPPRR project for constraints
virtual ~CConstraintChecker () throw ()
 destructor

Detailed Description

OCL constraint checker for a GOPPRR model/project.

Definition at line 51 of file ConstraintChecker.h.

Constructor & Destructor Documentation

GOPPRR::CConstraintChecker::~CConstraintChecker ( ) throw ()
virtual

destructor

Definition at line 33 of file ConstraintChecker.cpp.

Member Function Documentation

bool GOPPRR::CConstraintChecker::Check ( GOPPRR::CProject *const  pProject,
const ::std::string &  OCLConstraints,
::std::ostream *const  pOutStream = 0 
) const throw (::GOPPRR::Error::CException)

checks a GOPPRR project for constraints

Check a GOPPRR::CProject instance for constraint statements defined in OCL

Parameters
[in]pProjectpointer to the project instance to be checked
[in]OCLConstraintsOCL constraint statements
[in]pOutStreamoptional pointer to an outstream object for violation information
Returns
true, if all constraints were met

Definition at line 44 of file ConstraintChecker.cpp.

References GOPPRR::CProject::m_GraphSet.

Referenced by oETCS::GEN::CMain::Execute(), and oETCS::UT::CGOPPRRTransformer::TestStaticSemantics().

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/.