All Frameworks  Class Hierarchy  This Framework  Indexes   

VPMInterfaces Interface CATICfgORExpression

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATICfgORExpression

Class to manage operations on ORExpressions.
Role: A ORExpression is a logical expression constituted of one or several ANDExpression. The ANDExpressions are linked with the OR logical operator. An ORExpression is used in the context of Configuration. It serves to give an effectivitity to a part Instance, based on ranges, dates, specifications and milestones. Example of ORExpression : "(R(10,20) AND SpecA) OR (Date1)". Examples of ANDExpression: "R(10,20) AND SpecA" , " Date1". Examples of Normal Values : "R(10,20)" , "SpecA"; "Date1".

See also:
CATICfgNormalValue, CATICfgEffectivity, CATICfgANDExpression


Method Index


o Add(CATICfgNormalValue_var&)
Add a single Normal Value to an ORExpression.
o Add(CATICfgORExpression_var&)
Add an ANDExpression to an ORExpression.
o Add(CATICfgANDExpression_var&)
Add an ANDExpression to an ORExpression.
o And(CATICfgORExpression_var&,CATICfgORExpression_var&)
Compute "AND" logical operation between two ORExpressions
o CopyMe(CATICfgORExpression_var&)
Copy an ORExpression.
o Dump()
Dump informations on an ANDExpression.
o Empty()
Clean the ANDExpression by Removing Normal Values.
o GetNbOfValues(long&)
Get the number of Normal Values contained in a ORExpression.
o GetValues(CATListOfCATICfgANDExpression_var&)
Get the ANDExpressions in an ORExpression.
o Inverse(CATICfgORExpression_var&)
Inverse an ORExpression.
o IsEqual(CATICfgORExpression_var&)
Compare two ORExpressions.
o Remove(CATICfgORExpression_var&,CATICfgORExpression_var&)
Substract an ORExpression from another one.
o SeekForANDExp(CATICfgANDExpression_var&)
Search an ANDexpression in an ORExpression.
o Simplify(CATICfgORExpression_var&)
Simplify an ORExpression.
o TranslateToEffectivity(CATICfgEffectivity_var&)
Translates an ORexp (this) to a list of list of Effectivity.
o toString(CATUnicodeString&)
Build a String representing an ORExpression.

Methods


o Add
public virtual Add( const iValue)
Add a single Normal Value to an ORExpression.
Parameters:
iValue
The Normal Value to add. I nfact, an ANDExpression limited to a normal value will be added.
o Add
public virtual Add( const iValue)
Add an ANDExpression to an ORExpression.
Parameters:
iValue
The ANDexpression to add.
o Add
public virtual Add( const iValue)
Add an ANDExpression to an ORExpression.
Parameters:
iValue
The ANDexpression to add.
o And
public virtual And( const iExpression,
oExpression)
Compute "AND" logical operation between two ORExpressions
Parameters:
iORExpression
ORExpression to compare with "this".
oExpression
Computed ORExpression. Example: A, B, C, D are single specs. ORExp1 = A OR B ; ORExp2 = C. Resulting ORExp = (A AND B) OR (B AND C).
o CopyMe
public virtual CopyMe( oExpression)
Copy an ORExpression.
Parameters:
oExpression
Copy of the ORExpression.
o Dump
public virtual Dump()
Dump informations on an ANDExpression.
o Empty
public virtual Empty()
Clean the ANDExpression by Removing Normal Values.
o GetNbOfValues
public virtual GetNbOfValues( oNbValues)
Get the number of Normal Values contained in a ORExpression.
Parameters:
oNbValues
Number of Normal Values.
o GetValues
public virtual GetValues( oList)
Get the ANDExpressions in an ORExpression.
Parameters:
oList
List of ANDExpression.
o Inverse
public virtual Inverse( oExpression)
Inverse an ORExpression.
Parameters:
oExpression.
Resulting ORExpression. Example: A, B , C ,D are single specs. ORExp1 = (A AND B) OR ( C ). Resulting ORExp is : (!A AND !C) OR (!B AND !C )
o IsEqual
public virtual IsEqual( const iORExpression)
Compare two ORExpressions.
Returns:
An integer.
Legal values : 0 means EQUAL, 1 means DIFFERENT.
Parameters:
iORExpression
ORExpression to compare with "this".
o Remove
public virtual Remove( const iToRemove,
oResult)
Substract an ORExpression from another one.
Parameters:
iToRemove
The ORExpression to substract.
oResult
The ORexpression obtained after substraction. Example : ORexp1 = R(10,20) & Spec1. ORexp2 = R(7,15) . Resulting ORExp = R(16,20) & Spec1.
o SeekForANDExp
public virtual SeekForANDExp( const iANDExp)
Search an ANDexpression in an ORExpression.
Returns:
An integer.
Legal values : 0 = Found , 1 = not Found.
Parameters:
iANDExp
ANDExpression to search
o Simplify
public virtual Simplify( oORExp)
Simplify an ORExpression.
Parameters:
oORExp
The simplified ORExpression. Example : OrExp1 = (A AND B) OR (A AND B AND C) OR D Resulting oORExp = (A AND B) OR D
o TranslateToEffectivity
public virtual TranslateToEffectivity( oEffectivity)
Translates an ORexp (this) to a list of list of Effectivity.
Parameters:
oList.
The list of effectivities translated.
o toString
public virtual toString( oOrExp)
Build a String representing an ORExpression.
Parameters:
oOrExp
The String representing the ORExpression. This string includes parenthesis, and key-words like OR , AND. This string is dedicated to user interface's usage.

This object is included in the file: CATICfgORExpression.h
If needed, your Imakefile.mk should include the module: GUIDVPMInterfaces

Copyright © 2003, Dassault Systèmes. All rights reserved.