Package 

Class FoundationsRegistry

  • All Implemented Interfaces:

    
    public class FoundationsRegistry
    
                        

    We FoundationsRegistrys to keep track of and generate new foundations within the lifetime of a single Agent.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      String obtainFoundationForPeerReflexiveCandidate() Returns an (as far as you care) random foundation that could be assigned to a learned PEER-REFLEXIVE candidate.
      int size() Returns the number of foundation Strings that are currently tracked by the registry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.
      • size

         int size()

        Returns the number of foundation Strings that are currently tracked by the registry.