Class MockPLCComponent

java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.mtracs.MockPLCComponent
All Implemented Interfaces:
PLCComponentInterface

public class MockPLCComponent extends DiarcComponent implements PLCComponentInterface
MockPLCComponent represents a PLC unit, specifically equipped with a program that allows it to drive a conveyor belt.
  • Constructor Details

    • MockPLCComponent

      public MockPLCComponent()
  • Method Details

    • conveyorForward

      public boolean conveyorForward()
      Moves the conveyor belt that this PLCComponent is connected to forward.
      Specified by:
      conveyorForward in interface PLCComponentInterface
      Returns:
      True if this move was executed successfully, false if otherwise.
    • conveyorReverse

      public boolean conveyorReverse()
      Moves the conveyor belt that this PLCComponent is connected to backwards.
      Specified by:
      conveyorReverse in interface PLCComponentInterface
      Returns:
      True if this move was executed successfully, false if otherwise.