ConForM.CoopnTools.JavaProto.Interpretor
Class ModuleTracker

java.lang.Object
  |
  +--ConForM.CoopnTools.JavaProto.Interpretor.ModuleTracker
All Implemented Interfaces:
CoopnModuleObserver, SpecModuleObserver

public class ModuleTracker
extends java.lang.Object
implements CoopnModuleObserver, SpecModuleObserver

Tracks module changes and notifies Interpretor


Constructor Summary
ModuleTracker(CoopnSpec spec, SpecMgr specMgr, InterpretorFrame owner)
          Creates a Tracker tracking for all spec dependencies.
 
Method Summary
 void destroy()
          Destroys the tracker.
 void notifyCoopnModuleChanged(java.lang.String name, CoopnModule module)
          Notification routine.
 void notifySpecModuleChanged(java.lang.String name, SpecModule module)
          Notification routine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleTracker

public ModuleTracker(CoopnSpec spec,
                     SpecMgr specMgr,
                     InterpretorFrame owner)
Creates a Tracker tracking for all spec dependencies.
Method Detail

destroy

public void destroy()
Destroys the tracker. Destroyed tracker tracks nothing.

notifySpecModuleChanged

public void notifySpecModuleChanged(java.lang.String name,
                                    SpecModule module)
Description copied from interface: SpecModuleObserver
Notification routine. This routine is called by the spec manager - if the file listener is registrated - each time the spec manager decides that the specification module is modified.
Specified by:
notifySpecModuleChanged in interface SpecModuleObserver
Following copied from interface: ConForM.CoopnTools.CoKer.SpecMgr.SpecModuleObserver
Parameters:
specName - the name of the spec module.
module - the modified specification module.

notifyCoopnModuleChanged

public void notifyCoopnModuleChanged(java.lang.String name,
                                     CoopnModule module)
Description copied from interface: CoopnModuleObserver
Notification routine. This routine is called by the coopn manager - if the observer is registrated - each time the coopn manager decides that the source module is modified.
Specified by:
notifyCoopnModuleChanged in interface CoopnModuleObserver
Following copied from interface: ConForM.CoopnTools.CoKer.CoopnMgr.CoopnModuleObserver
Parameters:
moduleName - the name of the coopn module.
module - the new associated module