Class Animator

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Animator
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected edu.uci.ics.jung.algorithms.util.IterativeContext process  
      protected long sleepTime
      how long the relaxer thread pauses between iteration loops.
      protected boolean stop  
      protected java.lang.Thread thread  
    • Constructor Summary

      Constructors 
      Constructor Description
      Animator​(edu.uci.ics.jung.algorithms.util.IterativeContext process)  
      Animator​(edu.uci.ics.jung.algorithms.util.IterativeContext process, long sleepTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getSleepTime()  
      void run()  
      void setSleepTime​(long sleepTime)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • process

        protected edu.uci.ics.jung.algorithms.util.IterativeContext process
      • stop

        protected boolean stop
      • thread

        protected java.lang.Thread thread
      • sleepTime

        protected long sleepTime
        how long the relaxer thread pauses between iteration loops.
    • Constructor Detail

      • Animator

        public Animator​(edu.uci.ics.jung.algorithms.util.IterativeContext process)
      • Animator

        public Animator​(edu.uci.ics.jung.algorithms.util.IterativeContext process,
                        long sleepTime)
    • Method Detail

      • getSleepTime

        public long getSleepTime()
        Returns:
        the relaxerThreadSleepTime
      • setSleepTime

        public void setSleepTime​(long sleepTime)
        Parameters:
        relaxerThreadSleepTime - the relaxerThreadSleepTime to set
      • start

        public void start()
      • stop

        public void stop()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable