Class MachineCommand

java.lang.Object
test.de.iip_ecosphere.platform.connectors.MachineCommand

public class MachineCommand extends Object
Some machine command for testing.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private boolean
     
    private boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
     
    int
    The lot size to produce with.
    int
     
    boolean
    Returns whether the machine shall be started.
    boolean
    Returns whether the machine shall be stopped.
    void
    setLotSize(int lotSize)
    Defines the lot size to produce with.
    void
    setStart(boolean start)
    Sets whether the machine shall be started.
    void
    setStop(boolean stop)
    Sets whether the machine shall be stopped.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • start

      private boolean start
    • stop

      private boolean stop
    • lotSize

      private int lotSize
  • Constructor Details

    • MachineCommand

      public MachineCommand()
  • Method Details

    • setStart

      public void setStart(boolean start)
      Sets whether the machine shall be started.
      Parameters:
      start - whether the machine shall be started
    • setStop

      public void setStop(boolean stop)
      Sets whether the machine shall be stopped.
      Parameters:
      stop - whether the machine shall be stopped
    • setLotSize

      public void setLotSize(int lotSize)
      Defines the lot size to produce with.
      Parameters:
      lotSize - the lot size
    • isStart

      public boolean isStart()
      Returns whether the machine shall be started.
      Returns:
      true shall be started
    • isStop

      public boolean isStop()
      Returns whether the machine shall be stopped.
      Returns:
      true shall be stoped
    • getLotSize

      public int getLotSize()
      The lot size to produce with.
      Returns:
      the lot size
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object