Package microsim.alignment.outcome
Interface AlignmentOutcomeClosure<T>
- Type Parameters:
T
- A generic type representing agents.
public interface AlignmentOutcomeClosure<T>
An interface to handle event-related attributes of agents.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getOutcome
(T agent) A method to extract the binary outcome value from an agent.void
Attempts to resample (change) the binary outcome value of an agent.
-
Method Details
-
getOutcome
A method to extract the binary outcome value from an agent.- Parameters:
agent
- An agent.- Returns:
- a boolean value,
0
or1
. - Throws:
NullPointerException
- whenagent
isnull
.
-
resample
Attempts to resample (change) the binary outcome value of an agent.- Parameters:
agent
- An agent.- Throws:
NullPointerException
- whenagent
isnull
.
-