Class ArchiveModule

java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.common.archive.ArchiveModule
All Implemented Interfaces:
com.google.inject.Module

public class ArchiveModule extends Opt4JModule
The ArchiveModule determines an implementation for the Archive interface.
See Also:
  • Field Details

    • type

      protected ArchiveModule.Type type
    • capacity

      protected int capacity
    • divisions

      protected int divisions
  • Constructor Details

    • ArchiveModule

      public ArchiveModule()
  • Method Details

    • getDivisions

      public int getDivisions()
      Returns the number of divisions for the AdaptiveGridArchive.
      Returns:
      the number of divisions
      See Also:
    • setDivisions

      public void setDivisions(int divisions)
      Set the number of divisions for the AdaptiveGridArchive.
      Parameters:
      divisions - the number of divisions
      See Also:
    • setType

      public void setType(ArchiveModule.Type type)
      Sets the archive type to the specified value.
      Parameters:
      type - the new archive type
      See Also:
    • getType

      public ArchiveModule.Type getType()
      Returns the archive type.
      Returns:
      the archive type
      See Also:
    • setCapacity

      public void setCapacity(int capacity)
      Sets the archive's capacity to the specified value.
      Parameters:
      capacity - the new capacity (using namespace BoundedArchive)
      See Also:
    • getCapacity

      public int getCapacity()
      Returns the archive's capacity.
      Returns:
      the archive's capacity
      See Also:
    • config

      public void config()
      Description copied from class: Opt4JModule
      Configure the module. Bind constants, listeners, and bind arbitrary classes.
      Specified by:
      config in class Opt4JModule
      See Also:
      • Binder