Class SendRequirementStep
- java.lang.Object
-
- cz.cvut.fel.sit.omo.foodchain.scenario.ScenarioStep
-
- cz.cvut.fel.sit.omo.foodchain.scenario.SendRequirementStep
-
public class SendRequirementStep extends ScenarioStep
Step for sending requirements
-
-
Field Summary
Fields Modifier and Type Field Description private NodeBasenodeprivate java.lang.StringpNameprivate javax.money.MonetaryAmountpPriceprivate ProductTypepTypeprivate TransactionTypetType-
Fields inherited from class cz.cvut.fel.sit.omo.foodchain.scenario.ScenarioStep
LOGGER
-
-
Constructor Summary
Constructors Constructor Description SendRequirementStep(NodeBase node, TransactionType tType, ProductType pType, java.lang.String pName)SendRequirementStep(NodeBase node, TransactionType tType, ProductType pType, java.lang.String pName, java.lang.Double price)
-
Method Summary
Modifier and Type Method Description (package private) voidexecute()Creates requirement.
-
-
-
Field Detail
-
node
private final NodeBase node
-
tType
private final TransactionType tType
-
pType
private final ProductType pType
-
pName
private final java.lang.String pName
-
pPrice
private javax.money.MonetaryAmount pPrice
-
-
Constructor Detail
-
SendRequirementStep
public SendRequirementStep(NodeBase node, TransactionType tType, ProductType pType, java.lang.String pName)
-
SendRequirementStep
public SendRequirementStep(NodeBase node, TransactionType tType, ProductType pType, java.lang.String pName, java.lang.Double price)
-
-
Method Detail
-
execute
void execute()
Creates requirement.- Specified by:
executein classScenarioStep
-
-