Class RandomPath

java.lang.Object
common.animation.RandomPath
All Implemented Interfaces:
JobPath

public class RandomPath extends Object implements JobPath
Created by IntelliJ IDEA. User: OrsotronIII Date: 1-mar-2005 Time: 16.00.00 This class implements methods to get a jobanimation to run by -and impredictible- randomized paths in its queue net.
  • Constructor Details

    • RandomPath

      public RandomPath(QueueNetAnimation qNet, JobContainer startingPoint)
      Creates a new instance for randomized path for specified queue net.
      Parameters:
      qNet - : queue net this path refers to.
      startingPoint - : queue net element this path must start from.
  • Method Details

    • getNext

      public JobContainer getNext()
      Returns a reference to next element in path.
      Specified by:
      getNext in interface JobPath
      Returns:
      JobContainer implementing class the job should be routed to.
    • isLast

      public boolean isLast()
      Tells whether this path has come to end, e.g. there are no successor nodes.
      Specified by:
      isLast in interface JobPath