|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.uwaterloo.cs.ql.fb.TupleSet
ca.uwaterloo.cs.ql.fb.EdgeSet
public class EdgeSet
| Field Summary |
|---|
| Fields inherited from class ca.uwaterloo.cs.ql.fb.TupleSet |
|---|
CHAOS, HAS_DUPLICATES |
| Constructor Summary | |
|---|---|
EdgeSet()
EdgeSet. |
|
EdgeSet(int capacity)
EdgeSet. |
|
EdgeSet(java.lang.String name)
EdgeSet. |
|
| Method Summary | |
|---|---|
void |
add(int fr,
int to)
Adds an edge to this set efficiently. |
void |
add(java.lang.String fr,
java.lang.String to)
Adds an edge to this set. |
void |
appendRSF(java.lang.String fileName)
|
void |
appendTA(java.lang.String fileName)
Appends all element data to the end of a file. |
Edge[] |
getAllEdges()
|
java.lang.String |
getAttribute(int nodeID)
|
int |
getAttributeID(int nodeID)
Gets a node's attribute's ID. |
TupleSet |
newSet()
Needs to be overwritten. |
void |
printRSF(java.io.OutputStream out)
|
void |
printTA(java.io.OutputStream out)
Prints all element data to out
in the TA form. |
| Methods inherited from class ca.uwaterloo.cs.ql.fb.TupleSet |
|---|
add, add, appendDB, clone, columns, get, getAllTuples, getName, getTupleList, hasDuplicates, hasName, print, removeDuplicates, setFlag, setHasDuplicates, setName, size, unsetFlag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeSet()
public EdgeSet(java.lang.String name)
public EdgeSet(int capacity)
| Method Detail |
|---|
public void add(java.lang.String fr,
java.lang.String to)
fr - the bgn of the edge.to - the end of the edge.
public void add(int fr,
int to)
fr - the bgn of the edge.to - the end of the edge.public int getAttributeID(int nodeID)
public java.lang.String getAttribute(int nodeID)
public Edge[] getAllEdges()
public TupleSet newSet()
TupleSet
newSet in class TupleSetpublic void printTA(java.io.OutputStream out)
TupleSetout
in the TA form.
printTA in class TupleSetout - the output stream.
public void appendTA(java.lang.String fileName)
throws java.io.IOException
TupleSet
appendTA in class TupleSetfileName - the output file name.
java.io.IOExceptionpublic void printRSF(java.io.OutputStream out)
public void appendRSF(java.lang.String fileName)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||