Trull

edu.luc.cs.trull
Class Local

java.lang.Object
  extended by edu.luc.cs.trull.EmptyComponent
      extended by edu.luc.cs.trull.TerminatingComponent
          extended by edu.luc.cs.trull.AbstractComponent
              extended by edu.luc.cs.trull.AbstractCombinator
                  extended by edu.luc.cs.trull.SingleChildCombinator
                      extended by edu.luc.cs.trull.Rename
                          extended by edu.luc.cs.trull.Local
All Implemented Interfaces:
Combinator, Component, PropertyChangeSource, Startable, Suspendable, Terminating, java.beans.PropertyChangeListener, java.util.EventListener
Direct Known Subclasses:
CompositeCounter, Haltable, Pauseable, TemperatureStableOffice

public class Local
extends Rename

A combinator for hiding events within a component. It implements the concept of consistently renaming each specified event to a unique new name known only within the component. Localized events become private to the component, that is, distinct from events with the same label but outside of the component. This combinator is a special case of Rename.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.luc.cs.trull.Rename
Rename.LocalListener
 
Nested classes/interfaces inherited from class edu.luc.cs.trull.AbstractCombinator
AbstractCombinator.DefaultTerminationListener
 
Field Summary
private static org.apache.log4j.Logger logger
           
 
Fields inherited from class edu.luc.cs.trull.AbstractCombinator
components
 
Constructor Summary
Local()
          Constructs a Local component.
Local(Component body)
          Local([], body)
Local(java.lang.String[] internalLabels, Component body)
          Constructs a Local component with the given local event labels and body.
Local(java.lang.String internalLabel, Component body)
          Local([internalLabel], body)
 
Method Summary
 
Methods inherited from class edu.luc.cs.trull.Rename
addEventRenaming, getChildTerminationListener, getDefaultChild, getEventRenamings, getInternalListener, getLocalEvents, propertyChange, removeEventRenaming, setLocalEvent, setLocalEvents, setLocalEvents
 
Methods inherited from class edu.luc.cs.trull.SingleChildCombinator
addComponent, getChild, removeComponent, resume, start, stop, suspend
 
Methods inherited from class edu.luc.cs.trull.AbstractCombinator
addComponent, addComponent, getComponent, getComponentCount, getComponents, removeAllComponents, removeComponent
 
Methods inherited from class edu.luc.cs.trull.AbstractComponent
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getExternalListeners, getPropertyChangeListeners, removePropertyChangeListener
 
Methods inherited from class edu.luc.cs.trull.TerminatingComponent
fireTermination, getParent, getTermEvent, scheduleTermination, setTerminationListener
 
Methods inherited from class edu.luc.cs.trull.EmptyComponent
getTerminationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.luc.cs.trull.PropertyChangeSource
addPropertyChangeListener, getPropertyChangeListeners, removePropertyChangeListener
 
Methods inherited from interface edu.luc.cs.trull.Terminating
getTerminationListener, setTerminationListener
 

Field Detail

logger

private static final org.apache.log4j.Logger logger
Constructor Detail

Local

public Local()
Constructs a Local component. Specific properties can be changed later.


Local

public Local(Component body)
Local([], body)


Local

public Local(java.lang.String[] internalLabels,
             Component body)
Constructs a Local component with the given local event labels and body.

Parameters:
internalLabels - the event labels to be made local to this component.
body - the body of this component.

Local

public Local(java.lang.String internalLabel,
             Component body)
Local([internalLabel], body)


Trull

http://www.cs.luc.edu/trull/