pedviz.loader
Class Loader

java.lang.Object
  extended by pedviz.loader.Loader
Direct Known Subclasses:
ArrayGraphLoader, CsvGraphLoader, DatabaseGraphLoader, PedGraphLoader, RessourceGraphLoader

public abstract class Loader
extends java.lang.Object

This abstract class is a super class for graph loader classes. You can use this guidelines for writing your own Loader class:

Version:
0.1
Author:
Lukas Forer

Constructor Summary
Loader()
           
 
Method Summary
abstract  java.util.Vector<java.lang.String> getColumns()
          Returns a array of all columns.
 java.lang.String getDadColumn()
          Returns the field name from the dad's id
 java.lang.String getIdColumn()
          Returns the field name from the id
 java.lang.String getMomColumn()
          Returns the field name from the mom's id
abstract  void load(Graph graph)
          Loads data in the given Graph object.
 void setSettings(java.lang.String id, java.lang.String mom, java.lang.String dad)
          Sets the field names, in which the id, mom's id and dad's id are saved.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader()
Method Detail

load

public abstract void load(Graph graph)
Loads data in the given Graph object.

Parameters:
graph - Gaph object.

getColumns

public abstract java.util.Vector<java.lang.String> getColumns()
Returns a array of all columns.

Returns:
a array of all columns.

setSettings

public void setSettings(java.lang.String id,
                        java.lang.String mom,
                        java.lang.String dad)
Sets the field names, in which the id, mom's id and dad's id are saved.

Parameters:
id - field name from the id
mom - field name from the mom's id
dad - field name from the dad's id

getDadColumn

public java.lang.String getDadColumn()
Returns the field name from the dad's id

Returns:
field name from the dad's id

getIdColumn

public java.lang.String getIdColumn()
Returns the field name from the id

Returns:
field name from the id

getMomColumn

public java.lang.String getMomColumn()
Returns the field name from the mom's id

Returns:
field name from the mom's id