All Frameworks Class Hierarchy This Framework Previous Next Indexes
VPMInterfaces Interface CATICfgORExpression
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---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(CATICfgANDExpression_var&)
- Add an ANDExpression to an ORExpression.
- o
Add(CATICfgNormalValue_var&)
- Add a single Normal Value to an ORExpression.
- o
Add(CATICfgORExpression_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 void Add( | const CATICfgANDExpression_var& | iValue) = 0 |
-
Add an ANDExpression to an ORExpression.
- Parameters:
-
- iValue
- The ANDexpression to add.
o Add
public virtual void Add( | const CATICfgNormalValue_var& | iValue) = 0 |
-
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 void Add( | const CATICfgORExpression_var& | iValue) = 0 |
-
Add an ANDExpression to an ORExpression.
- Parameters:
-
- iValue
- The ANDexpression to add.
o And
public virtual HRESULT And( | const CATICfgORExpression_var& | iExpression, |
| CATICfgORExpression_var& | oExpression) const = 0 |
-
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 HRESULT CopyMe( | CATICfgORExpression_var& | oExpression) = 0 |
-
Copy an ORExpression.
- Parameters:
-
- oExpression
- Copy of the ORExpression.
o Dump
public virtual void Dump( | )const = 0 |
-
Dump informations on an ANDExpression.
o Empty
public virtual void Empty( | )= 0 |
-
Clean the ANDExpression by Removing Normal Values.
o GetNbOfValues
public virtual HRESULT GetNbOfValues( | long& | oNbValues) const = 0 |
-
Get the number of Normal Values contained in a ORExpression.
- Parameters:
-
- oNbValues
- Number of Normal Values.
o GetValues
-
Get the ANDExpressions in an ORExpression.
- Parameters:
-
- oList
- List of ANDExpression.
o Inverse
public virtual HRESULT Inverse( | CATICfgORExpression_var& | oExpression) const = 0 |
-
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 int IsEqual( | const CATICfgORExpression_var& | iORExpression) const = 0 |
-
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 HRESULT Remove( | const CATICfgORExpression_var& | iToRemove, |
| CATICfgORExpression_var& | oResult) const = 0 |
-
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 int SeekForANDExp( | const CATICfgANDExpression_var& | iANDExp) const = 0 |
-
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 HRESULT Simplify( | CATICfgORExpression_var& | oORExp) const = 0 |
-
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 HRESULT TranslateToEffectivity( | CATICfgEffectivity_var& | oEffectivity) = 0 |
-
Translates an ORexp (this) to a list of list of Effectivity.
- Parameters:
-
- oList.
- The list of effectivities translated.
o toString
-
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