updateStatus method
Updates the agent's status and marks it as active.
Implementation
void updateStatus(AgentStatus newStatus) {
status = newStatus;
markActive();
}
Updates the agent's status and marks it as active.
void updateStatus(AgentStatus newStatus) {
status = newStatus;
markActive();
}