|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spo.src.Generator.Relation
A class that generates SPO relations for the SPO data management system Overall Constraints: # of random variables: 200 # of elements in context: <= 6 # of elements in conditional: <= 3 random variables: CS100 ~ CS299 context elements: year, semester, major, college, instructor, comments
| Field Summary | |
(package private) char |
CHAR_START
|
(package private) int |
cond
|
(package private) int |
cont
|
(package private) int |
CONTEXT_LEN
|
(package private) int |
m
|
(package private) int |
n
|
(package private) static float |
PERCENT
|
(package private) int |
size
|
(package private) static char |
TYPE
|
(package private) int |
VAR_LEN
|
(package private) int |
VAR_RATIO
|
(package private) int |
VAR_START
|
(package private) int |
YEAR_START
|
| Constructor Summary | |
Relation(int m,
int n,
int size,
int cont,
int cond)
Initialize an instance for the class |
|
| Method Summary | |
java.lang.String |
getConditional()
Generate the conditional element for the SPOs in XML format random variables: CS100 ~ CS149 |
java.lang.String |
getContext()
Generate the context element for the SPO in XML format context elements: year, semester, major, college, instructor, comments year: 1976 ~ 2001 semester: "AA" ~ "ZZ" major: "AA" ~ "ZZ" college: "AA" ~ "ZZ" instructor: "AA" ~ "ZZ" comments: "AA" ~ "ZZ" |
java.lang.String[] |
getJVariables()
|
java.lang.String[] |
getOVariables()
|
java.lang.String |
getOXJConditional()
|
float[] |
getProbabilities()
Generate the probability for each row in the table element of the SPO |
java.lang.String |
getSPOs()
Generate SPOs in XML format for testing |
java.lang.String |
getTable()
Generate the table element for the SPO in XML format |
char[] |
getValues(int k)
Generate value set of the participating random variables for the SPO |
java.lang.String[] |
getVariables()
Generate participating random variable set for the SPO |
java.lang.String[] |
getXVariables()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
int m
int n
int size
int cont
int cond
final int YEAR_START
final char CHAR_START
final int CONTEXT_LEN
final int VAR_START
final int VAR_LEN
final int VAR_RATIO
static char TYPE
static float PERCENT
| Constructor Detail |
public Relation(int m,
int n,
int size,
int cont,
int cond)
m - number of SPO in the relationn - number of participating variables in each SPOsize - size of domain for participating variablescont - max number of elements in context elementcond - max number of elements in conditional element| Method Detail |
public java.lang.String getSPOs()
public java.lang.String getContext()
public java.lang.String getTable()
public java.lang.String getConditional()
public java.lang.String getOXJConditional()
public java.lang.String[] getVariables()
public java.lang.String[] getOVariables()
public java.lang.String[] getXVariables()
public java.lang.String[] getJVariables()
public char[] getValues(int k)
k - the kth row of the table elementpublic float[] getProbabilities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||