org.powertac.common.state
Class StateLogging

java.lang.Object
  extended by org.powertac.common.state.StateLogging

public class StateLogging
extends Object

Implement uniform state-logging using aspects. This scheme depends on two annotations: @Domain labels a class for which calls to the constructor are logged. @StateChange labels a method that must be logged (with its arguments) when it is called. Log output is a single text line consisting of the following fields, separated by double colon :: strings (assuming the log4j config puts out the msec data):

  1. milliseconds from start of log
  2. class name
  3. instance id value
  4. method name ("new" for constructor)
  5. method arguments, separated by ::

Author:
John Collins

Constructor Summary
StateLogging()
           
 
Method Summary
 void chainedConstructor()
           
 void domainConstructor()
           
 void newState()
           
 void newstate(org.aspectj.lang.JoinPoint jp)
           
 void readResolveMethod()
           
 void setState()
           
 void setstate(org.aspectj.lang.JoinPoint jp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateLogging

public StateLogging()
Method Detail

setState

public void setState()

domainConstructor

public void domainConstructor()

readResolveMethod

public void readResolveMethod()

chainedConstructor

public void chainedConstructor()

newState

public void newState()

setstate

public void setstate(org.aspectj.lang.JoinPoint jp)

newstate

public void newstate(org.aspectj.lang.JoinPoint jp)


Copyright © 2013. All Rights Reserved.