openETCS
case study for the European Train Control System developed for the authors dissertation
|
OCL constraint checker for a GOPPRR model/project. More...
#include <ConstraintChecker.h>
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 |
OCL constraint checker for a GOPPRR model/project.
Definition at line 51 of file ConstraintChecker.h.
|
virtual |
destructor
Definition at line 33 of file ConstraintChecker.cpp.
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
[in] | pProject | pointer to the project instance to be checked |
[in] | OCLConstraints | OCL constraint statements |
[in] | pOutStream | optional pointer to an outstream object for violation information |
Definition at line 44 of file ConstraintChecker.cpp.
References GOPPRR::CProject::m_GraphSet.
Referenced by oETCS::GEN::CMain::Execute(), and oETCS::UT::CGOPPRRTransformer::TestStaticSemantics().
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/.