|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.neu.ccs.evergreen.ir.RelationNumberUtil
public class RelationNumberUtil
| Constructor Summary | |
|---|---|
RelationNumberUtil()
|
|
| Method Summary | |
|---|---|
static int |
and(int rank,
int... variablePositions)
Given a set of variable positions, return a relation that is the anding of these variables |
static int |
equiv(int rank,
int... variablePositions)
Given two variables x,y returns a relation that represents x=y |
static int |
imply(int rank,
int... variablePositions)
Given two variables x,y returns a relation that represents x==>y |
static void |
main(java.lang.String[] args)
|
static int |
nMap(int relationNumber,
int rank,
int... variablePositions)
nMaps a number of variables in a certain relation |
static int |
or(int rank,
int... variablePositions)
Given a set of variable positions, return a relation that is the or of these variables |
static int |
xor(int rank,
int... variablePositions)
Given two variables x,y returns a relation that represents xor(x,y) |
static int |
xTrueVars(int rank,
int numberOfTrueVars)
for 1in3 use xTrueVars(3,1) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationNumberUtil()
| Method Detail |
|---|
public static int or(int rank,
int... variablePositions)
rank - the rank of the created relationvariablePositions - an arbitrary number of variable positions
public static int and(int rank,
int... variablePositions)
rank - the rank of the created relationvariablePositions - an arbitrary number of variable positions
public static int nMap(int relationNumber,
int rank,
int... variablePositions)
relationNumber - rank - the rank of the created relationvariablePositions - an arbitrary number of variable positions
public static int imply(int rank,
int... variablePositions)
rank - the rank of the created relationvariablePositions - two variable positions
public static int equiv(int rank,
int... variablePositions)
rank - the rank of the created relationvariablePositions - two variable positions
public static int xor(int rank,
int... variablePositions)
rank - the rank of the created relationvariablePositions - two variable positions
public static int xTrueVars(int rank,
int numberOfTrueVars)
rank - numberOfTrueVars -
public static void main(java.lang.String[] args)
args -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||