Class Threaded

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    Engine, NetThing

    public abstract class Threaded
    extends java.lang.Object
    implements java.lang.Runnable
    Author:
    Group 3
    • Constructor Summary

      Constructors 
      Constructor Description
      Threaded()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.atomic.AtomicBoolean getRunning()
      Getter for running
      java.util.concurrent.atomic.AtomicBoolean getSuspended()
      Getter for suspended
      java.lang.Thread getThread()
      Getter for myThread
      abstract void run()
      Run stuff.
      void start()
      Request start thread activity.
      void stop()
      Request stop thread activity.
      protected void unsuspend()
      Unsuspend thread.
      • Methods inherited from class java.lang.Object

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

      • Threaded

        public Threaded()
    • Method Detail

      • start

        public final void start()
        Request start thread activity.
      • stop

        public final void stop()
        Request stop thread activity.
      • unsuspend

        protected final void unsuspend()
        Unsuspend thread.
      • getThread

        public java.lang.Thread getThread()
        Getter for myThread
        Returns:
        myThread
      • getRunning

        public java.util.concurrent.atomic.AtomicBoolean getRunning()
        Getter for running
        Returns:
        running
      • getSuspended

        public java.util.concurrent.atomic.AtomicBoolean getSuspended()
        Getter for suspended
        Returns:
        suspended
      • run

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