GME  13
Public Types | Public Member Functions
Ocl::Constraint Class Reference

#include <OclConstraint.h>

Inheritance diagram for Ocl::Constraint:
Inheritance graph
[legend]

List of all members.

Public Types

enum  State {
  CS_UNREGISTERED = 0, CS_REGISTERED = 1, CS_DEFINED = 2, CS_CTX_PARSE_FAILED = 3,
  CS_CTX_PARSE_SUCCEEDED = 4, CS_CTX_CHECK_FAILED = 5, CS_CTX_CHECK_SUCCEEDED = 6, CS_PARSE_FAILED = 7,
  CS_PARSE_SUCCEEDED = 8, CS_CHECK_FAILED = 9, CS_CHECK_SUCCEEDED = 10, CS_CHECK_DEPENDENCY_FAILED = 11,
  CS_CHECK_DEPENDENCY_SUCCEEDED = 12, CS_EVAL_FAILED = 13, CS_EVAL_SUCCEEDED = 14
}
enum  Stereotype {
  CS_INVARIANT = 20, CS_PRECONDITION = 21, CS_POSTCONDITION = 22, CS_ATTRIBUTEDEF = 23,
  CS_METHODDEF = 24
}

Public Member Functions

 Constraint ()
 Constraint (OclTree::TreeManager *pManager)
 Constraint (OclTree::TreeManager *pManager, const std::string &strName, const std::string &strText, bool bDynamic=false)
virtual ~Constraint ()
State Register (OclTree::TreeManager *pManager)
State Define (const std::string &strName, const std::string &strText="", bool bDynamic=false)
std::string GetDefinedName () const
State GetState () const
bool IsValid () const
bool IsDefined () const
std::string GetText () const
bool IsDynamic () const
State ParseContext ()
std::string GetName () const
Stereotype GetStereotype () const
State CheckContext ()
std::string GetContextType () const
std::string GetReturnType () const
OclCommon::FormalParameterVector GetFormalParameters () const
virtual std::string GetFullName () const
std::string GetNamespace () const
void SetNamespace (const std::string &nm)
State Parse ()
State Check (OclTree::TypeContextStack &ctxTypes)
OclMeta::DependencySet GetDependencySet () const
std::string PrintTree () const
std::string Print () const
State SetDependencyResult (const OclMeta::DependencySet &setDependenies=OclMeta::DependencySet())
OclCommon::ExceptionPool GetExceptions ()
OclCommon::ExceptionPool GetExceptions (bool bContext)
OclMeta::Object Evaluate (OclTree::ObjectContextStack &ctxObjects, bool bEnableLogicalShortCircuit=false, bool bEnableIteratorShortCircuit=false, bool bEnableTracking=true)
OclTree::ViolationVector GetViolations ()
void ClearViolations ()

Detailed Description

Definition at line 27 of file OclConstraint.h.


Member Enumeration Documentation

Enumerator:
CS_UNREGISTERED 
CS_REGISTERED 
CS_DEFINED 
CS_CTX_PARSE_FAILED 
CS_CTX_PARSE_SUCCEEDED 
CS_CTX_CHECK_FAILED 
CS_CTX_CHECK_SUCCEEDED 
CS_PARSE_FAILED 
CS_PARSE_SUCCEEDED 
CS_CHECK_FAILED 
CS_CHECK_SUCCEEDED 
CS_CHECK_DEPENDENCY_FAILED 
CS_CHECK_DEPENDENCY_SUCCEEDED 
CS_EVAL_FAILED 
CS_EVAL_SUCCEEDED 

Definition at line 30 of file OclConstraint.h.

Enumerator:
CS_INVARIANT 
CS_PRECONDITION 
CS_POSTCONDITION 
CS_ATTRIBUTEDEF 
CS_METHODDEF 

Definition at line 49 of file OclConstraint.h.


Constructor & Destructor Documentation

Definition at line 38 of file OclConstraint.cpp.

Definition at line 43 of file OclConstraint.cpp.

Ocl::Constraint::Constraint ( OclTree::TreeManager pManager,
const std::string strName,
const std::string strText,
bool  bDynamic = false 
)

Definition at line 50 of file OclConstraint.cpp.

Reimplemented in OclGme::Constraint.

Definition at line 60 of file OclConstraint.cpp.


Member Function Documentation

Definition at line 242 of file OclConstraint.cpp.

Definition at line 158 of file OclConstraint.cpp.

Definition at line 338 of file OclConstraint.cpp.

Constraint::State Ocl::Constraint::Define ( const std::string strName,
const std::string strText = "",
bool  bDynamic = false 
)

Definition at line 77 of file OclConstraint.cpp.

OclMeta::Object Ocl::Constraint::Evaluate ( OclTree::ObjectContextStack ctxObjects,
bool  bEnableLogicalShortCircuit = false,
bool  bEnableIteratorShortCircuit = false,
bool  bEnableTracking = true 
)

Definition at line 293 of file OclConstraint.cpp.

Definition at line 175 of file OclConstraint.cpp.

Definition at line 91 of file OclConstraint.cpp.

Definition at line 257 of file OclConstraint.cpp.

Definition at line 315 of file OclConstraint.cpp.

Definition at line 322 of file OclConstraint.cpp.

Definition at line 212 of file OclConstraint.cpp.

Reimplemented in OclGme::ConstraintBase.

Definition at line 184 of file OclConstraint.cpp.

Definition at line 140 of file OclConstraint.cpp.

Definition at line 189 of file OclConstraint.cpp.

Definition at line 200 of file OclConstraint.cpp.

Definition at line 96 of file OclConstraint.cpp.

Definition at line 149 of file OclConstraint.cpp.

Definition at line 111 of file OclConstraint.cpp.

Definition at line 331 of file OclConstraint.cpp.

Definition at line 106 of file OclConstraint.cpp.

Definition at line 116 of file OclConstraint.cpp.

bool Ocl::Constraint::IsValid ( ) const

Definition at line 101 of file OclConstraint.cpp.

Definition at line 224 of file OclConstraint.cpp.

Definition at line 121 of file OclConstraint.cpp.

Definition at line 279 of file OclConstraint.cpp.

Definition at line 286 of file OclConstraint.cpp.

Definition at line 68 of file OclConstraint.cpp.

Definition at line 264 of file OclConstraint.cpp.

Definition at line 194 of file OclConstraint.cpp.


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