-
- All Implemented Interfaces:
public class FoundationsRegistryWe FoundationsRegistrys to keep track of and generate new foundations within the lifetime of a single Agent.
-
-
Method Summary
Modifier and Type Method Description voidassignFoundation(Candidate<out Object> candidate)Assigns to candidate the foundation that corresponds to its base, type and transport properties or a new one if no foundation has been generated yet for the specific combination. StringobtainFoundationForPeerReflexiveCandidate()Returns an (as far as you care) random foundation that could be assigned to a learned PEER-REFLEXIVE candidate. intsize()Returns the number of foundation Strings that are currently tracked by the registry. -
-
Method Detail
-
assignFoundation
void assignFoundation(Candidate<out Object> candidate)
Assigns to candidate the foundation that corresponds to its base, type and transport properties or a new one if no foundation has been generated yet for the specific combination.
- Parameters:
candidate- the Candidate that we'd like to assign a foundation to.
-
obtainFoundationForPeerReflexiveCandidate
String obtainFoundationForPeerReflexiveCandidate()
Returns an (as far as you care) random foundation that could be assigned to a learned PEER-REFLEXIVE candidate.
-
size
int size()
Returns the number of foundation Strings that are currently tracked by the registry.
-
-
-
-