Class MasterManager

  • All Implemented Interfaces:
    IObserver

    public class MasterManager
    extends java.lang.Object
    implements IObserver
    Manages a master instance which makes available state information to others in order to synchronize a session.
    • Method Detail

      • initialize

        public static void initialize()
      • boardcastCameraAndTime

        public void boardcastCameraAndTime​(Vector3d pos,
                                           Vector3d dir,
                                           Vector3d up,
                                           ITimeFrameProvider time)
        Broadcasts the given camera state and time to all the slaves
        Parameters:
        pos - Camera position
        dir - Camera direction
        up - Camera up
        time - Current time
      • boardcastCamera

        public void boardcastCamera​(Vector3d pos,
                                    Vector3d dir,
                                    Vector3d up)
        Broadcasts the given camera state to all the slaves
        Parameters:
        pos - Camera position
        dir - Camera direction
        up - Camera up
      • notify

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver