Class MachineCommand
java.lang.Object
test.de.iip_ecosphere.platform.connectors.MachineCommand
Some machine command for testing.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThe lot size to produce with.inthashCode()booleanisStart()Returns whether the machine shall be started.booleanisStop()Returns whether the machine shall be stopped.voidsetLotSize(int lotSize) Defines the lot size to produce with.voidsetStart(boolean start) Sets whether the machine shall be started.voidsetStop(boolean stop) Sets whether the machine shall be stopped.
-
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:
trueshall be started
-
isStop
public boolean isStop()Returns whether the machine shall be stopped.- Returns:
trueshall be stoped
-
getLotSize
public int getLotSize()The lot size to produce with.- Returns:
- the lot size
-
equals
-
hashCode
public int hashCode()
-