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 TypeMethodDescriptionbooleangetOutcome(T agent) A method to extract the binary outcome value from an agent.voidAttempts 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,
0or1. - Throws:
NullPointerException- whenagentisnull.
-
resample
Attempts to resample (change) the binary outcome value of an agent.- Parameters:
agent- An agent.- Throws:
NullPointerException- whenagentisnull.
-