edu.UCL.satin.impl.Debug
Class Debug

java.lang.Object
  extended byedu.UCL.satin.arch.components.Component
      extended byedu.UCL.satin.impl.Debug.Debug
All Implemented Interfaces:
ComponentFacet, DebugFacet, Facet

public class Debug
extends Component
implements DebugFacet

Author:
Stefanos Zachariadis

Field Summary
protected  boolean debug
           
 
Fields inherited from class edu.UCL.satin.arch.components.Component
immutable, properties
 
Fields inherited from interface edu.UCL.satin.arch.facets.ComponentFacet
DISABLED, ENABLED
 
Constructor Summary
Debug()
           
 
Method Summary
 java.io.PrintStream getPrintStream()
           
 boolean isEnabled()
          Checks whether this component is enabled or not.
 void print(java.lang.String msg, java.lang.Object source)
           
 void setEnabled(boolean enabled)
          Enables or disables the component
 
Methods inherited from class edu.UCL.satin.arch.components.Component
addAttribute, construct, destroy, getAttribute, getProperties, hasAttribute, match, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.UCL.satin.arch.facets.ComponentFacet
addAttribute, construct, destroy, getAttribute, getProperties, hasAttribute
 

Field Detail

debug

protected boolean debug
Constructor Detail

Debug

public Debug()
Method Detail

print

public void print(java.lang.String msg,
                  java.lang.Object source)
Specified by:
print in interface DebugFacet

getPrintStream

public java.io.PrintStream getPrintStream()
Specified by:
getPrintStream in interface DebugFacet

isEnabled

public boolean isEnabled()
Description copied from interface: ComponentFacet
Checks whether this component is enabled or not.

Specified by:
isEnabled in interface ComponentFacet
Overrides:
isEnabled in class Component
Returns:

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: ComponentFacet
Enables or disables the component

Specified by:
setEnabled in interface ComponentFacet
Overrides:
setEnabled in class Component
Parameters:
enabled -