org.softevo.ample.instrument
Class InstrumentationConfiguration

java.lang.Object
  extended by org.softevo.ample.instrument.InstrumentationConfiguration
All Implemented Interfaces:
IAmplePreferenceConstants

public class InstrumentationConfiguration
extends java.lang.Object
implements IAmplePreferenceConstants

Configuration object that holds properties of the instrumentation.

Author:
dallmeier

Field Summary
private  int callAssociation
          Indicates if calls are associated with the caller (outgoing calls) or the callee (incoming calls).
private  java.lang.String identityMapFileName
          The name of the identity map file.
private  int level
          The trace level to be used.
private  java.lang.String outputFileName
          The name of the output file.
private  int windowSize
          The window size to use.
 
Fields inherited from interface org.softevo.ample.ui.IAmplePreferenceConstants
CALLS_INCOMING, CALLS_OUTGOING, KEY_LEVEL, KEY_PERSPECTIVE, KEY_TESTDURATION, KEY_WINDOWSIZE, LEVEL_CLASS, LEVEL_OBJECT, PREF_DURATION, PREF_LEVELS, PREF_PERSPECTIVES, PREF_WINDOWSIZES
 
Constructor Summary
InstrumentationConfiguration(int windowSize, int level, int callAssociation)
          Creates a new configuration object.
 
Method Summary
 int getCallAssociation()
          Gets the call association from the config.
 java.lang.String getIdentityMapFileName()
          Gets the name of the identity map file.
 int getLevel()
          Gets the trace level.
 java.lang.String getOutputFileName()
          Gets the name of the output file.
 int getWindowSize()
          Gets the window size.
 boolean isClassLevel()
          Tests if tracing shall be done on class leve.
 boolean isIncomingCalls()
          Tests if incoming calls should be traced.
 boolean isObjectLevel()
          Tests if tracing shall be done on object level.
 boolean isOutgoingCalls()
          Tests if outgoing calls should be traced.
 void setIdentityMapFileName(java.lang.String identityMapFileName)
          Sets the name of the identity map file.
 void setOutputFileName(java.lang.String outputFileName)
          Sets the name of the output file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

windowSize

private int windowSize
The window size to use.


level

private int level
The trace level to be used.


callAssociation

private int callAssociation
Indicates if calls are associated with the caller (outgoing calls) or the callee (incoming calls).


outputFileName

private java.lang.String outputFileName
The name of the output file.


identityMapFileName

private java.lang.String identityMapFileName
The name of the identity map file.

Constructor Detail

InstrumentationConfiguration

public InstrumentationConfiguration(int windowSize,
                                    int level,
                                    int callAssociation)
Creates a new configuration object.

Parameters:
windowSize - the window size
level - the level to trace on.
callAssociation - what calls are associated with
outputFileName - the output file
identityMapFileName - the name of the identity map file
Method Detail

getWindowSize

public int getWindowSize()
Gets the window size.


getLevel

public int getLevel()
Gets the trace level.


getCallAssociation

public int getCallAssociation()
Gets the call association from the config.


isIncomingCalls

public boolean isIncomingCalls()
Tests if incoming calls should be traced.


isOutgoingCalls

public boolean isOutgoingCalls()
Tests if outgoing calls should be traced.


isObjectLevel

public boolean isObjectLevel()
Tests if tracing shall be done on object level.


isClassLevel

public boolean isClassLevel()
Tests if tracing shall be done on class leve.

Returns:

getOutputFileName

public java.lang.String getOutputFileName()
Gets the name of the output file.

Returns:

getIdentityMapFileName

public java.lang.String getIdentityMapFileName()
Gets the name of the identity map file.

Returns:

setIdentityMapFileName

public void setIdentityMapFileName(java.lang.String identityMapFileName)
Sets the name of the identity map file.


setOutputFileName

public void setOutputFileName(java.lang.String outputFileName)
Sets the name of the output file.


toString

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