All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SWEEP.SWEEP

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----SWEEP.SWEEP

public class SWEEP
extends Thread
implements Serializable
SWEEP object will maintain one view in it. It will provide a data update receiver to outside, where you can send data update to the SWEEP 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.


Variable Index

 o dur
DataUpdateReceiver of this SWEEP Object.
 o dw
Data warehouse process of this view definition.
 o FifoChannel
FifoChannel used to create communication between ISs and DW.
 o ISnum
Number of ISs.
 o isps
Array of ISProcess

Constructor Index

 o SWEEP(View, MKB)
Create a SWEEP object from View object in EVEDemo.MW package.
 o SWEEP(View_Definition)
Create a SWEEP object from View_definition class in EVEDemo.VKB package.

Method Index

 o checkAttrList(Vector, String)
check if a specific attribute is already in an vector of attribute
 o getAttribute(Vector, String)
Get Attribute object of SWEEP from the AttrList (Vector) of SWEEP Attribute of has the specific name in format R.A
 o getAttrs(Vector, Relation)
Get the Attributes of one relation in the project list.
 o getJCs(JoinList, Relation)
Get a list of join conditions related to a specific relation from the current viewdefinition of this SWEEP object.
 o getLocalAttrName(JoinCondition, Relation)
Get Local Attribute Name of this join condition of specific relation name.
 o getReceiver()
Get Receiver from SWEEP.
 o getRelation(Relation[], String)
Get the SWEEP Relation object from a list of relations.
 o getRemoteAttrName(JoinCondition, Relation)
Get Remote Attribute Name of this join condition of specific relation name.
 o getRemoteRelName(JoinCondition, Relation)
Get Remote Relation Name of this Join Condition of Specific Relation name.
 o init(View_Definition)
Init the SWEEP object.
 o run()
Run the CreateUpdateFile part.

Variables

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

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

 o dw
 DWProcess dw
Data warehouse process of this view definition.

 o isps
 ISProcess isps[]
Array of ISProcess

 o ISnum
 int ISnum
Number of ISs.

Constructors

 o SWEEP
 public SWEEP(View v,
              MKB mkb) throws Exception
Create a SWEEP object from View object in EVEDemo.MW package.

 o SWEEP
 public SWEEP(View_Definition vd) throws Exception
Create a SWEEP object from View_definition class in EVEDemo.VKB package.

Methods

 o run
 public void run()
Run the CreateUpdateFile part.

Overrides:
run in class Thread
 o getReceiver
 public DataUpdateReceiver getReceiver()
Get Receiver from SWEEP. Where you can use it to send data update to SWEEP

 o init
 void init(View_Definition vd) throws Exception
Init the SWEEP object.

 o getJCs
 Vector getJCs(JoinList JL,
               Relation rel)
Get a list of join conditions related to a specific relation from the current viewdefinition of this SWEEP object.

Parameters:
JL - join list
rel - reference of relation.
Returns:
return empty vector is not found.
 o getLocalAttrName
 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.
 o getRemoteRelName
 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"
 o getRemoteAttrName
 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"
 o checkAttrList
 Attribute checkAttrList(Vector attrlist,
                         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.
 o getRelation
 Relation getRelation(Relation rels[],
                      String Rname)
Get the SWEEP Relation object from a list of relations.

Parameters:
rels - array of relations.
String - name of relation.
Returns:
not found return null;
 o getAttrs
 Vector getAttrs(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.
 o getAttribute
 Attribute getAttribute(Vector AttrList,
                        String attrName)
Get Attribute object of SWEEP from the AttrList (Vector) of SWEEP Attribute of has the specific name in format R.A

Parameters:
AttrList - vector of SWEEP Attributes.
String - Attribute Name in format "R.A"

All Packages  Class Hierarchy  This Package  Previous  Next  Index