public interface

Participant

uk.ac.imperial.presage2.core.participant.Participant
Known Indirect Subclasses

Class Overview

This is the interface used by the simulator to interact with agents. All participants must implement this interface.

Summary

Public Methods
abstract void enqueueInput(Object input)
Adds a new input to be processed by this participant.
abstract void enqueueInput(Collection<? extends Object> inputs)
Adds multiple new inputs to be processed by this participant.
abstract UUID getID()
Returns the participant's unique ID.
abstract String getName()
Returns a unique string identifier for this participant.

Public Methods

public abstract void enqueueInput (Object input)

Adds a new input to be processed by this participant.

public abstract void enqueueInput (Collection<? extends Object> inputs)

Adds multiple new inputs to be processed by this participant.

public abstract UUID getID ()

Returns the participant's unique ID.

Returns
  • This participant's unique UUID

public abstract String getName ()

Returns a unique string identifier for this participant. This is used purely for a human readable identifier of the agent so the unique requirement is not mandatory. However it is convenient.

Returns
  • unique string identifier for this participant