The Meta-Environment API

nl.cwi.sen1.visbase.factbrowser.data
Class RStore

java.lang.Object
  extended by nl.cwi.sen1.visbase.factbrowser.data.RStore

public class RStore
extends java.lang.Object

This class represent the RStore. Every RStore has a collection of facts which will be contained in this class. It will offer methods to get the details of the RStore and get the children Facts.

Author:
Renze de Vries

Field Summary
private  java.util.ArrayList<RStoreFact> factNodes
           
private  int rstoreID
           
private  java.lang.String rstoreName
           
 
Constructor Summary
RStore()
          This is the default constructor which will be used as a failsafe.
RStore(java.lang.String rstoreName, int rstoreID)
          Constructor wich will set the name of the RStore and the RstoreID and will initialise the children factNodes container
 
Method Summary
 void addFactNode(RStoreFact factNode)
          This method will make it possible to add an Child factNode
 java.util.ArrayList<RStoreFact> getFactNodes()
          This method will return the ArrayList which contains all the children FactNodes
 int getRstoreId()
          This is the method which will the return the unique Identifier of the RStore.
 java.lang.String toString()
          Method will make it possible to display the name of the RStore in the tree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factNodes

private java.util.ArrayList<RStoreFact> factNodes

rstoreName

private java.lang.String rstoreName

rstoreID

private int rstoreID
Constructor Detail

RStore

public RStore()
This is the default constructor which will be used as a failsafe. The normal constructor to use is the following: RStoreNode(String rstoreName, int rstoreID)


RStore

public RStore(java.lang.String rstoreName,
              int rstoreID)
Constructor wich will set the name of the RStore and the RstoreID and will initialise the children factNodes container

Parameters:
rstoreName - THis is the visual name of the RStore
rstoreID - This is the identifier of the RStore
Method Detail

addFactNode

public void addFactNode(RStoreFact factNode)
This method will make it possible to add an Child factNode

Parameters:
factNode - This is to add a FactNode to the RStore

getFactNodes

public java.util.ArrayList<RStoreFact> getFactNodes()
This method will return the ArrayList which contains all the children FactNodes

Returns:
the ArrayList for the factNodes

toString

public java.lang.String toString()
Method will make it possible to display the name of the RStore in the tree

Overrides:
toString in class java.lang.Object

getRstoreId

public int getRstoreId()
This is the method which will the return the unique Identifier of the RStore.

Returns:
THe unique identifier

The Meta-Environment API