agg.attribute.impl
Class AttrObject

java.lang.Object
  extended by agg.attribute.impl.AttrObject
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
AttrTupleManager, DistributionBroker, ManagedObject, Member, SlotSequence, TupleEvent, TupleFormat, TupleMapping

public abstract class AttrObject
extends java.lang.Object
implements java.util.Observer

Provides some convenience operations for its subclasses. Very useful for debugging.


Field Summary
protected static java.lang.Class<?> classHandlerExpr
           
protected static java.lang.Class<?> classObject
           
protected static java.lang.Class<?> classString
           
protected static boolean initialized
           
 
Constructor Summary
AttrObject()
          A message is printed in the logging window whenever an instance of it is created.
 
Method Summary
protected  java.lang.String defaultToString()
          Even if a class has defined its own 'toString()' method, we want to see the long name and the funny code (virtual address) that makes it unique and traceable.
 void err(boolean logTopic, java.lang.String msg)
          Print itself and a message to error view, if 'logTopic' == 'true'.
 void err(java.lang.String msg)
          Print itself and a message to error view.
protected  java.lang.String getInstRepr()
          Combines the default instance representation with a specific one, if given.
 void log()
          Display itself.
 void log(boolean logTopic, java.lang.String msg)
          Print itself and a message to logging view, if 'logTopic' == 'true'.
 void log(java.lang.String msg)
          Print itself and a message to logging view.
protected  void logEnteredMethod(boolean debugTopic, java.lang.String name, java.lang.Object[] args)
          Print information about entering the method 'name' with the arguments 'args' if 'debugTopic' == 'true'.
 void logPrintln(boolean logTopic, java.lang.String msg)
          Print itself and a message if 'logTopic' == 'true'.
 void logPrintln(java.lang.String msg)
          Print itself and a message.
protected  void stdoutPrintOnEnter(boolean debugTopic, java.lang.String msg)
          Print to stdout when entered a method, useful when synchronizing with other components.
protected  void stdoutPrintOnExit(boolean debugTopic, java.lang.String msg)
          Print to stdout when leaving a method, useful when synchronizing with other components.
 java.lang.String toString()
           
 void update(java.util.Observable o, java.lang.Object arg)
          Default (empty) implementation of the only Observer interface method.
 void warn(java.lang.String msg)
           
 void warn(java.lang.String msg, boolean showStack)
           
 void warn(java.lang.String msg, java.lang.Exception ex)
           
 void warn(java.lang.String msg, java.lang.Exception ex, boolean showStack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

classHandlerExpr

protected static java.lang.Class<?> classHandlerExpr

classObject

protected static java.lang.Class<?> classObject

classString

protected static java.lang.Class<?> classString

initialized

protected static boolean initialized
Constructor Detail

AttrObject

public AttrObject()
A message is printed in the logging window whenever an instance of it is created.

Method Detail

toString

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

defaultToString

protected java.lang.String defaultToString()
Even if a class has defined its own 'toString()' method, we want to see the long name and the funny code (virtual address) that makes it unique and traceable.

Returns:
A string of the form "java.lang.reflect.Method: 7643ef8a"

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Default (empty) implementation of the only Observer interface method. Subclasses that want to become observers have to override this.

Specified by:
update in interface java.util.Observer

getInstRepr

protected java.lang.String getInstRepr()
Combines the default instance representation with a specific one, if given.


log

public void log()
Display itself. Empty by default.


log

public void log(java.lang.String msg)
Print itself and a message to logging view.


log

public void log(boolean logTopic,
                java.lang.String msg)
Print itself and a message to logging view, if 'logTopic' == 'true'.


err

public void err(java.lang.String msg)
Print itself and a message to error view.


err

public void err(boolean logTopic,
                java.lang.String msg)
Print itself and a message to error view, if 'logTopic' == 'true'.


warn

public void warn(java.lang.String msg)

warn

public void warn(java.lang.String msg,
                 boolean showStack)

warn

public void warn(java.lang.String msg,
                 java.lang.Exception ex)

warn

public void warn(java.lang.String msg,
                 java.lang.Exception ex,
                 boolean showStack)

logPrintln

public void logPrintln(java.lang.String msg)
Print itself and a message.


logPrintln

public void logPrintln(boolean logTopic,
                       java.lang.String msg)
Print itself and a message if 'logTopic' == 'true'.


logEnteredMethod

protected void logEnteredMethod(boolean debugTopic,
                                java.lang.String name,
                                java.lang.Object[] args)
Print information about entering the method 'name' with the arguments 'args' if 'debugTopic' == 'true'.


stdoutPrintOnEnter

protected void stdoutPrintOnEnter(boolean debugTopic,
                                  java.lang.String msg)
Print to stdout when entered a method, useful when synchronizing with other components.


stdoutPrintOnExit

protected void stdoutPrintOnExit(boolean debugTopic,
                                 java.lang.String msg)
Print to stdout when leaving a method, useful when synchronizing with other components.