IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.base
Class TraceRequester

java.lang.Object
  extended bycom.ibm.dse.base.TraceRequester

public class TraceRequester
extends java.lang.Object

This class defines a trace requester or component for the trace system.


Field Summary
protected  boolean enable
          The component's state
protected  int traceLevel
          The component's level
protected  int traceType
          The component's type
 
Constructor Summary
TraceRequester()
          This constructor creates a TraceRequester object.
TraceRequester(boolean state, int type, int level)
          This constructor creates a TraceRequester object.
 
Method Summary
 boolean getEnable()
          Returns the value of the enable property.
 int getTraceLevel()
          Returns the value of the traceLevel property.
 int getTraceType()
          Returns the value of the traceType property.
 boolean isLevelEnabled(int level)
          Returns true if the specified level is enabled.
 boolean isTypeEnabled(int type)
          Returns true if the specified type is enabled.
 void setEnable(boolean newValue)
          Sets the value of the enable property.
 void setTraceLevel(int newValue)
          Sets the value of the traceLevel property.
 void setTraceType(int newValue)
          Sets the value of the traceType property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enable

protected boolean enable
The component's state


traceType

protected int traceType
The component's type


traceLevel

protected int traceLevel
The component's level

Constructor Detail

TraceRequester

public TraceRequester()
This constructor creates a TraceRequester object.


TraceRequester

public TraceRequester(boolean state,
                      int type,
                      int level)
This constructor creates a TraceRequester object.

Parameters:
state - boolean - The state of component
type - int - The type
level - int - The level
Method Detail

getEnable

public boolean getEnable()
Returns the value of the enable property.

Returns:
boolean - The current value of enable

getTraceLevel

public int getTraceLevel()
Returns the value of the traceLevel property.

Returns:
int - The current value of traceLevel

getTraceType

public int getTraceType()
Returns the value of the traceType property.

Returns:
int - The current value of traceType

isLevelEnabled

public boolean isLevelEnabled(int level)
Returns true if the specified level is enabled.

Parameters:
level - int - The level
Returns:
boolean

isTypeEnabled

public boolean isTypeEnabled(int type)
Returns true if the specified type is enabled.

Parameters:
type - int - The type
Returns:
boolean

setEnable

public void setEnable(boolean newValue)
Sets the value of the enable property.

Parameters:
newValue - boolean - The new value of the property

setTraceLevel

public void setTraceLevel(int newValue)
Sets the value of the traceLevel property.

Parameters:
newValue - int - The new value of the property

setTraceType

public void setTraceType(int newValue)
Sets the value of the traceType property.

Parameters:
newValue - int - The new value of the property

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005