Class DtoSingleAspectBasicRunExpenseModel
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoSingleAspectBasicRunExpenseModel
- All Implemented Interfaces:
IDtoAbstractRunExpenseModel,IDtoSingleAspectBasicRunExpenseModel
public class DtoSingleAspectBasicRunExpenseModel
extends Object
implements IDtoSingleAspectBasicRunExpenseModel
A basic model whose output is determined depending on the value of a single run condition aspect.
-
Field Summary
Fields inherited from interface com.vernaio.kayros.engine.v2.api.dto.IDtoSingleAspectBasicRunExpenseModel
_DISCRIMINATOR_TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDtoSingleAspectBasicRunExpenseModel(String id, String aspect) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaspect of the run condition that generates cost or durationdefault cost or duration where no specific valueExpense is givengetId()Unique identifier amoung all DtoAbstractRunExpenseModels.getType()Type discriminatorcost or duration for specific values.inthashCode()voidaspect of the run condition that generates cost or durationvoidsetDefaultExpense(Double defaultExpense) default cost or duration where no specific valueExpense is givenvoidUnique identifier amoung all DtoAbstractRunExpenseModels.voidsetValueExpenses(IDtoSingleAspectBasicValueRunExpense[] valueExpenses) cost or duration for specific values.withAspect(String aspect) aspect of the run condition that generates cost or durationwithDefaultExpense(Double defaultExpense) default cost or duration where no specific valueExpense is givenUnique identifier amoung all DtoAbstractRunExpenseModels.withValueExpenses(IDtoSingleAspectBasicValueRunExpense[] valueExpenses) cost or duration for specific values.
-
Constructor Details
-
DtoSingleAspectBasicRunExpenseModel
protected DtoSingleAspectBasicRunExpenseModel() -
DtoSingleAspectBasicRunExpenseModel
-
-
Method Details
-
getType
Type discriminator- Specified by:
getTypein interfaceIDtoAbstractRunExpenseModel- Specified by:
getTypein interfaceIDtoSingleAspectBasicRunExpenseModel
-
getId
Unique identifier amoung all DtoAbstractRunExpenseModels.- Specified by:
getIdin interfaceIDtoAbstractRunExpenseModel- Specified by:
getIdin interfaceIDtoSingleAspectBasicRunExpenseModel
-
setId
Unique identifier amoung all DtoAbstractRunExpenseModels.- Specified by:
setIdin interfaceIDtoAbstractRunExpenseModel- Specified by:
setIdin interfaceIDtoSingleAspectBasicRunExpenseModel
-
getAspect
aspect of the run condition that generates cost or duration- Specified by:
getAspectin interfaceIDtoSingleAspectBasicRunExpenseModel
-
setAspect
aspect of the run condition that generates cost or duration- Specified by:
setAspectin interfaceIDtoSingleAspectBasicRunExpenseModel
-
getDefaultExpense
default cost or duration where no specific valueExpense is given- Specified by:
getDefaultExpensein interfaceIDtoSingleAspectBasicRunExpenseModel
-
setDefaultExpense
default cost or duration where no specific valueExpense is given- Specified by:
setDefaultExpensein interfaceIDtoSingleAspectBasicRunExpenseModel
-
getValueExpenses
cost or duration for specific values.- Specified by:
getValueExpensesin interfaceIDtoSingleAspectBasicRunExpenseModel
-
setValueExpenses
cost or duration for specific values.- Specified by:
setValueExpensesin interfaceIDtoSingleAspectBasicRunExpenseModel
-
withId
Unique identifier amoung all DtoAbstractRunExpenseModels. -
withAspect
aspect of the run condition that generates cost or duration -
withDefaultExpense
default cost or duration where no specific valueExpense is given -
withValueExpenses
public DtoSingleAspectBasicRunExpenseModel withValueExpenses(IDtoSingleAspectBasicValueRunExpense[] valueExpenses) cost or duration for specific values. -
equals
-
hashCode
public int hashCode()
-