|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object partage.ComplexInstance.GenericObjectFormula
public static class ComplexInstance.GenericObjectFormula
A static class representing a generic propositional formula made of an array of subformulae, and a logical operator, on the set of objects.
Field Summary | |
---|---|
static int |
OPERATOR_AND
|
static int |
OPERATOR_NOT
|
static int |
OPERATOR_OR
|
Constructor Summary | |
---|---|
ComplexInstance.GenericObjectFormula(ComplexInstance.LogicalObjectFormula[] _sub,
int _op)
|
Method Summary | |
---|---|
static ComplexInstance.GenericObjectFormula |
and(ComplexInstance.LogicalObjectFormula[] _sub)
Makes a conjunction of several formulae |
static ComplexInstance.GenericObjectFormula |
and(ComplexInstance.LogicalObjectFormula _sub1,
ComplexInstance.LogicalObjectFormula _sub2)
Makes a conjunction of two formulae |
int[] |
getObjects()
This methods returns the set of objects concerned by the formula. |
int |
getOperator()
Standard getter to the operator |
ComplexInstance.LogicalObjectFormula[] |
getSubformulae()
Standard getter to the subformulae |
static ComplexInstance.GenericObjectFormula |
not(ComplexInstance.LogicalObjectFormula _sub)
Makes a negation of a formula |
static ComplexInstance.GenericObjectFormula |
or(ComplexInstance.LogicalObjectFormula[] _sub)
Makes a disjunction of several formulae |
static ComplexInstance.GenericObjectFormula |
or(ComplexInstance.LogicalObjectFormula _sub1,
ComplexInstance.LogicalObjectFormula _sub2)
Makes a disjunction of two formulae |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OPERATOR_AND
public static final int OPERATOR_OR
public static final int OPERATOR_NOT
Constructor Detail |
---|
public ComplexInstance.GenericObjectFormula(ComplexInstance.LogicalObjectFormula[] _sub, int _op)
Method Detail |
---|
public static ComplexInstance.GenericObjectFormula not(ComplexInstance.LogicalObjectFormula _sub)
_sub
- the formula to negate.
public static ComplexInstance.GenericObjectFormula or(ComplexInstance.LogicalObjectFormula[] _sub)
_sub
- the array of formulae
public static ComplexInstance.GenericObjectFormula or(ComplexInstance.LogicalObjectFormula _sub1, ComplexInstance.LogicalObjectFormula _sub2)
_sub1
- the first formula_sub2
- the second formula
public static ComplexInstance.GenericObjectFormula and(ComplexInstance.LogicalObjectFormula[] _sub)
_sub
- the array of formulae
public static ComplexInstance.GenericObjectFormula and(ComplexInstance.LogicalObjectFormula _sub1, ComplexInstance.LogicalObjectFormula _sub2)
_sub1
- the first formula_sub2
- the second formula
public int[] getObjects()
ComplexInstance.LogicalObjectFormula
getObjects
in interface ComplexInstance.LogicalObjectFormula
public int getOperator()
public ComplexInstance.LogicalObjectFormula[] getSubformulae()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |