Interface AgentPropertySetterFunction<T>
- Type Parameters:
T- the type of value the property carries
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for defining the setter logic of a functional agent property.
-
Method Summary
Modifier and TypeMethodDescriptionset(AgentContext context, T currentPropertyValue, T newPropertyValue) Sets the property's value.
-
Method Details
-
set
Sets the property's value.- Parameters:
context- the context the property can use in its setter logiccurrentPropertyValue- the property's currently stored valuenewPropertyValue- the value the property is being set to- Returns:
- the value the property should store after the set
-