EVEDemo.PSWEEP
Class PSWEEP

java.lang.Object
  |
  +--EVEDemo.PSWEEP.PSWEEP

public class PSWEEP
extends java.lang.Object
implements java.io.Serializable

PSWEEP object will maintain one view in it. It will provide a data update receiver to outside, where you can send data update to the PSWEEP object. It requires: 1. View Definition either in ESQL format, or an object of ViewDefinition in VKB. 2. Data update which will affect this view. It will provice: 1. a DataUpdateReceiver to accept the data update. It will DO: Maintain the real extend of that view in the database.

See Also:
Serialized Form

Field Summary
private static boolean DEBUG
           
(package private)  DataUpdateReceiver dur
          DataUpdateReceiver of this PSWEEP Object.
(package private)  DWProcess dw
          Data warehouse process of this view definition.
(package private)  MultiQueue FifoChannel
          FifoChannel used to create communication between ISs and DW.
(package private)  int ISnum
          Number of ISs.
(package private)  ISProcess[] isps
          Array of ISProcess
static int step
          The sleep timer for all the threads.
 
Constructor Summary
PSWEEP(View_Definition vd)
          Create a PSWEEP object from View_definition class in EVEDemo.VKB package.
PSWEEP(View v, MKB mkb)
          Create a PSWEEP object from View object in EVEDemo.MW package.
 
Method Summary
(package private)  Attribute checkAttrList(java.util.Vector attrlist, java.lang.String aname)
          check if a specific attribute is already in an vector of attribute
(package private)  Attribute getAttribute(java.util.Vector AttrList, java.lang.String attrName)
          Get Attribute object of PSWEEP from the AttrList (Vector) of PSWEEP Attribute of has the specific name in format R.A
(package private)  java.util.Vector getAttrs(java.util.Vector project, Relation rel)
          Get the Attributes of one relation in the project list.
(package private)  java.util.Vector getJCs(JoinList JL, Relation rel)
          Get a list of join conditions related to a specific relation from the current viewdefinition of this PSWEEP object.
(package private)  java.lang.String getLocalAttrName(JoinCondition jc, Relation rel)
          Get Local Attribute Name of this join condition of specific relation name.
 DataUpdateReceiver getReceiver()
          Get Receiver from PSWEEP.
(package private)  Relation getRelation(Relation[] rels, java.lang.String Rname)
          Get the PSWEEP Relation object from a list of relations.
(package private)  java.lang.String getRemoteAttrName(JoinCondition jc, Relation rel)
          Get Remote Attribute Name of this join condition of specific relation name.
(package private)  java.lang.String getRemoteRelName(JoinCondition jc, Relation rel)
          Get Remote Relation Name of this Join Condition of Specific Relation name.
(package private)  void init(View_Definition vd)
          Init the PSWEEP object.
 void start()
          Start the UpdateView of PSWEEP DWProcess.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG

step

public static final int step
The sleep timer for all the threads.

dur

DataUpdateReceiver dur
DataUpdateReceiver of this PSWEEP Object. The object will be used by Andreas from the middle layer to send the DU down.

FifoChannel

MultiQueue FifoChannel
FifoChannel used to create communication between ISs and DW.

dw

DWProcess dw
Data warehouse process of this view definition. It should be the PSWEEP.DWProcess here. :)

isps

ISProcess[] isps
Array of ISProcess

ISnum

int ISnum
Number of ISs.
Constructor Detail

PSWEEP

public PSWEEP(View v,
              MKB mkb)
       throws java.lang.Exception
Create a PSWEEP object from View object in EVEDemo.MW package.

PSWEEP

public PSWEEP(View_Definition vd)
       throws java.lang.Exception
Create a PSWEEP object from View_definition class in EVEDemo.VKB package.
Method Detail

getReceiver

public DataUpdateReceiver getReceiver()
Get Receiver from PSWEEP. Where you can use it to send data update to PSWEEP

start

public void start()
Start the UpdateView of PSWEEP DWProcess.

init

void init(View_Definition vd)
    throws java.lang.Exception
Init the PSWEEP object.

getJCs

java.util.Vector getJCs(JoinList JL,
                        Relation rel)
Get a list of join conditions related to a specific relation from the current viewdefinition of this PSWEEP object.
Parameters:
JL - join list
rel - reference of relation.
Returns:
return empty vector is not found.

getLocalAttrName

java.lang.String getLocalAttrName(JoinCondition jc,
                                  Relation rel)
Get Local Attribute Name of this join condition of specific relation name.
Parameters:
jc - Join Conditoin.
rel - relation's name.

getRemoteRelName

java.lang.String getRemoteRelName(JoinCondition jc,
                                  Relation rel)
Get Remote Relation Name of this Join Condition of Specific Relation name.
Parameters:
jc - Join Condition.
rel - Relation's Name.
Returns:
"R"

getRemoteAttrName

java.lang.String getRemoteAttrName(JoinCondition jc,
                                   Relation rel)
Get Remote Attribute Name of this join condition of specific relation name.
Parameters:
jc - Join Condition.
rel - relation's name.
Returns:
"A"

checkAttrList

Attribute checkAttrList(java.util.Vector attrlist,
                        java.lang.String aname)
check if a specific attribute is already in an vector of attribute
Parameters:
attrlist - vector of attributes
aname - attribute name "R.A".
Returns:
not found return null.

getRelation

Relation getRelation(Relation[] rels,
                     java.lang.String Rname)
Get the PSWEEP Relation object from a list of relations.
Parameters:
rels - array of relations.
String - name of relation.
Returns:
not found return null;

getAttrs

java.util.Vector getAttrs(java.util.Vector project,
                          Relation rel)
Get the Attributes of one relation in the project list.
Parameters:
project - (Vector) Project list composed of attribute_component
rel - specific relation object in sweep package.
Returns:
a vector of objects of DSRG.MKB.Attributes.

getAttribute

Attribute getAttribute(java.util.Vector AttrList,
                       java.lang.String attrName)
Get Attribute object of PSWEEP from the AttrList (Vector) of PSWEEP Attribute of has the specific name in format R.A
Parameters:
AttrList - vector of PSWEEP Attributes.
String - Attribute Name in format "R.A"