Module swim.system
Package swim.system

Class LaneRelay<Model extends LaneModel<View,​?>,​View extends LaneView>

    • Field Detail

      • views

        protected final Object views
      • viewCount

        protected final int viewCount
      • phaseCount

        protected final int phaseCount
      • viewIndex

        protected int viewIndex
      • phase

        protected int phase
      • preemptive

        protected boolean preemptive
      • stage

        protected Stage stage
    • Constructor Detail

      • LaneRelay

        protected LaneRelay​(Model model,
                            int minPhase,
                            int phaseCount,
                            Stage stage)
      • LaneRelay

        protected LaneRelay​(Model model,
                            int phaseCount)
      • LaneRelay

        protected LaneRelay​(Model model)
    • Method Detail

      • isDone

        public boolean isDone()
      • beginPhase

        protected void beginPhase​(int phase)
      • runPhase

        protected boolean runPhase​(View view,
                                   int phase,
                                   boolean preemptive)
      • endPhase

        protected void endPhase​(int phase)
      • done

        protected void done()
      • run

        public void run()
        Specified by:
        run in interface Runnable