harmonic.mz.manager
Class CollaborationManager

java.lang.Object
  |
  +--harmonic.mz.manager.CollaborationManager
All Implemented Interfaces:
CollaborationListener, ValidationListener

public class CollaborationManager
extends java.lang.Object
implements CollaborationListener, ValidationListener

This class is the ceneral mechanism for sharing data state between different instances of the program across the internet.


Constructor Summary
CollaborationManager()
           
 
Method Summary
 boolean getAutoUpdate_Final()
          Get whether updates will be done on final changes to data automatically
 boolean getAutoUpdate_Incremental()
          Get whether updates will be done on incremental changes to data automatically
 harmonic.mz.collaboration.RMICollaborator getCollaborator()
          Returns the single RMICollaborator instance for this process.
 java.util.Vector getCollaborators(java.lang.String groupName)
          Returns all RMICollaborator's instance for all process in group.
 void groupChanged(CollaborationEvent event)
          Responds to group change events by using UpdateInputer to update the state of this process.
 harmonic.mz.collaboration.RMICollaborator joinCollaborationGroup(java.lang.String host, java.lang.String groupName, java.lang.String name)
          Adds this process to group.
 void nodeChanged(DataNode node)
          Records changed node in list that used to build ouput information.
 void sceneValidated()
          Responds to local validation by calling updateCollaborationGroup().
 void setAutoUpdate_Final(boolean b)
          Set whether updates will be done on final changes to data automatically
 void setAutoUpdate_Incremental(boolean b)
          Set whether updates will be done on incremental changes to data automatically
 void startCollaborationGroup(java.lang.String groupName)
          Registers group name with RMI
 void updateCollaborationGroup(boolean bIncremental)
          Uses UpdateOutputer to send information about changed nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollaborationManager

public CollaborationManager()
Method Detail

setAutoUpdate_Final

public void setAutoUpdate_Final(boolean b)
Set whether updates will be done on final changes to data automatically


getAutoUpdate_Final

public boolean getAutoUpdate_Final()
Get whether updates will be done on final changes to data automatically


setAutoUpdate_Incremental

public void setAutoUpdate_Incremental(boolean b)
Set whether updates will be done on incremental changes to data automatically


getAutoUpdate_Incremental

public boolean getAutoUpdate_Incremental()
Get whether updates will be done on incremental changes to data automatically


groupChanged

public void groupChanged(CollaborationEvent event)
Responds to group change events by using UpdateInputer to update the state of this process.

Specified by:
groupChanged in interface CollaborationListener

sceneValidated

public void sceneValidated()
Responds to local validation by calling updateCollaborationGroup().

Specified by:
sceneValidated in interface ValidationListener

nodeChanged

public void nodeChanged(DataNode node)
Records changed node in list that used to build ouput information.


updateCollaborationGroup

public void updateCollaborationGroup(boolean bIncremental)
Uses UpdateOutputer to send information about changed nodes.


startCollaborationGroup

public void startCollaborationGroup(java.lang.String groupName)
Registers group name with RMI


joinCollaborationGroup

public harmonic.mz.collaboration.RMICollaborator joinCollaborationGroup(java.lang.String host,
                                                                        java.lang.String groupName,
                                                                        java.lang.String name)
Adds this process to group.


getCollaborator

public harmonic.mz.collaboration.RMICollaborator getCollaborator()
Returns the single RMICollaborator instance for this process.


getCollaborators

public java.util.Vector getCollaborators(java.lang.String groupName)
Returns all RMICollaborator's instance for all process in group.