EVEDemo.SWEEP
Class SWEEP

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

public class SWEEP
extends java.lang.Thread
implements java.io.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.

See Also:
Serialized Form

Field Summary
(package private)  DataUpdateReceiver dur
          DataUpdateReceiver of this SWEEP 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
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
SWEEP(View_Definition vd)
          Create a SWEEP object from View_definition class in EVEDemo.VKB package.
SWEEP(View v, MKB mkb)
          Create a SWEEP 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 SWEEP from the AttrList (Vector) of SWEEP 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 SWEEP 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 SWEEP.
(package private)  Relation getRelation(Relation[] rels, java.lang.String Rname)
          Get the SWEEP 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 SWEEP object.
 void run()
          Run the CreateUpdateFile part.
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dur

DataUpdateReceiver dur
DataUpdateReceiver of this SWEEP 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.

isps

ISProcess[] isps
Array of ISProcess

ISnum

int ISnum
Number of ISs.
Constructor Detail

SWEEP

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

SWEEP

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

run

public void run()
Run the CreateUpdateFile part.
Overrides:
run in class java.lang.Thread

getReceiver

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

init

void init(View_Definition vd)
    throws java.lang.Exception
Init the SWEEP 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 SWEEP 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 SWEEP 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 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"