agg.attribute.impl
Class TupleEvent

java.lang.Object
  extended by agg.attribute.impl.AttrObject
      extended by agg.attribute.impl.TupleEvent
All Implemented Interfaces:
AttrEvent, java.util.Observer
Direct Known Subclasses:
TupleViewEvent

public class TupleEvent
extends AttrObject
implements AttrEvent


Field Summary
protected  int id
           
protected  int index0
           
protected  int index1
           
protected  AttrMember member
           
protected  AttrTuple src
           
 
Fields inherited from class agg.attribute.impl.AttrObject
classHandlerExpr, classObject, classString, initialized
 
Fields inherited from interface agg.attribute.AttrEvent
ATTR_EVENT_MAX_ID, GENERAL_CHANGE, MEMBER_ADDED, MEMBER_DELETED, MEMBER_DISABLED, MEMBER_MARK, MEMBER_MODIFIED, MEMBER_RENAMED, MEMBER_RETYPED, MEMBER_TO_DELETE, MEMBER_VALUE_CORRECTNESS, MEMBER_VALUE_MODIFIED
 
Constructor Summary
TupleEvent(AttrTuple attr, int id, int index)
           
TupleEvent(AttrTuple attr, int id, int index0, int index1)
           
 
Method Summary
 TupleEvent cloneWithNewSource(AttrTuple tup)
           
 AttrMember getAttrMember()
          Getting the changed attribute member of the event.
 int getID()
          Getting the message id.
 int getIndex()
          Getting the first position index.
 int getIndex0()
          Getting the first position index.
 int getIndex1()
          Getting the second position index.
 AttrTuple getSource()
          Getting the originator of the event.
protected  java.lang.String idToString(int anID)
           
 java.lang.String toLongString()
           
 java.lang.String toString()
           
 
Methods inherited from class agg.attribute.impl.AttrObject
defaultToString, err, err, getInstRepr, log, log, log, logEnteredMethod, logPrintln, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, update, warn, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected int id

index0

protected int index0

index1

protected int index1

src

protected AttrTuple src

member

protected AttrMember member
Constructor Detail

TupleEvent

public TupleEvent(AttrTuple attr,
                  int id,
                  int index0,
                  int index1)

TupleEvent

public TupleEvent(AttrTuple attr,
                  int id,
                  int index)
Method Detail

cloneWithNewSource

public TupleEvent cloneWithNewSource(AttrTuple tup)

getSource

public AttrTuple getSource()
Description copied from interface: AttrEvent
Getting the originator of the event.

Specified by:
getSource in interface AttrEvent

getID

public int getID()
Description copied from interface: AttrEvent
Getting the message id.

Specified by:
getID in interface AttrEvent

getIndex

public int getIndex()
Description copied from interface: AttrEvent
Getting the first position index.

Specified by:
getIndex in interface AttrEvent

getIndex0

public int getIndex0()
Description copied from interface: AttrEvent
Getting the first position index.

Specified by:
getIndex0 in interface AttrEvent

getIndex1

public int getIndex1()
Description copied from interface: AttrEvent
Getting the second position index.

Specified by:
getIndex1 in interface AttrEvent

getAttrMember

public AttrMember getAttrMember()
Description copied from interface: AttrEvent
Getting the changed attribute member of the event. Returns null when getIndex0() != getIndex1().

Specified by:
getAttrMember in interface AttrEvent

toString

public java.lang.String toString()
Overrides:
toString in class AttrObject

toLongString

public java.lang.String toLongString()

idToString

protected java.lang.String idToString(int anID)