decide method

bool decide(
  1. AgentApprovalDecision decision
)

Takes decision if canDecide; returns whether it was taken.

Send the decision to the host only when this returns true.

Implementation

bool decide(AgentApprovalDecision decision) {
  if (!canDecide) return false;
  _decision = decision;

  return true;
}