pedviz.loader
Class PedGraphLoader
java.lang.Object
pedviz.loader.Loader
pedviz.loader.PedGraphLoader
public class PedGraphLoader
- extends Loader
This Loader class allow you to load a graph from a ped-file.
- Version:
- 0.1
- Author:
- Lukas Forer
Constructor Summary |
PedGraphLoader(java.lang.String filename)
Creates a new PedGraphLoader object. |
Method Summary |
java.util.Vector<java.lang.String> |
getColumns()
Returns a array of all columns. |
void |
load(Graph graph)
Loads data in the given Graph object. |
void |
setColumnType(java.lang.String column,
int type)
Sets the type for the given column. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
PedGraphLoader
public PedGraphLoader(java.lang.String filename)
- Creates a new PedGraphLoader object.
- Parameters:
filename
- filenameseparator
- Character which separates the values
setColumnType
public void setColumnType(java.lang.String column,
int type)
- Sets the type for the given column.
- Parameters:
column
- the name of the column.type
- Type (STRING(default)/INTEGER/DOUBLE)
load
public void load(Graph graph)
- Description copied from class:
Loader
- Loads data in the given Graph object.
- Specified by:
load
in class Loader
- Parameters:
graph
- Gaph object.
getColumns
public java.util.Vector<java.lang.String> getColumns()
- Description copied from class:
Loader
- Returns a array of all columns.
- Specified by:
getColumns
in class Loader
- Returns:
- a array of all columns.