Class OnePersonTeam.OnePerson

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    OnePersonTeam

    public class OnePersonTeam.OnePerson
    extends java.lang.Object
    implements java.lang.Runnable
    The individual comprising the Team.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean finished
      Flag to indicate finished.
    • Constructor Summary

      Constructors 
      Constructor Description
      OnePerson​(JobQueue jobQueue, long waitTime)
      Initiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

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

      • finished

        protected volatile boolean finished
        Flag to indicate finished.
    • Constructor Detail

      • OnePerson

        public OnePerson​(JobQueue jobQueue,
                         long waitTime)
        Initiate.
        Parameters:
        jobQueue - JobQueue.
        waitTime - Time to wait in milliseconds for a Job.
    • Method Detail

      • run

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