Store

class ioh.iohcpp.logger.Store(self, triggers: collections.abc.Sequence[ioh.iohcpp.logger.trigger.Trigger], properties: collections.abc.Sequence[ioh.iohcpp.logger.property.AbstractProperty])

Bases: AbstractLogger

A logger which stores all tracked properties in memory.

Parameters:
  • triggers (list[Trigger]) – List of triggers, i.e. when to trigger logging

  • properties (list[Property]) – The list of properties to keep track of

Attributes Summary

problem

Reference to the currently attached problem

Methods Summary

add_trigger(self, arg, /)

Add a trigger to the logger

at(self, arg0, arg1, arg2, arg3, arg4, arg5, /)

Accessor for a specific stored record

attach_problem(self, problem)

attach a problem (MetaData) to a logger

call(self, arg, /)

Performs logging behaviour

data(self)

Accessor to the internal data container

reset(self)

Reset the state of the logger

watch(-> None -> None)

Overloaded function.

Attributes Documentation

problem

Reference to the currently attached problem

Methods Documentation

add_trigger(self, arg: ioh.iohcpp.logger.trigger.Trigger, /) → None

Add a trigger to the logger

at(self, arg0: str, arg1: int, arg2: int, arg3: int, arg4: int, arg5: int, /) → dict[str, float | None]

Accessor for a specific stored record

attach_problem(self, problem: ioh.iohcpp.MetaData) → None

attach a problem (MetaData) to a logger

call(self, arg: ioh.iohcpp.LogInfo, /) → None

Performs logging behaviour

data(self) → dict[str, dict[int, dict[int, dict[int, dict[int, dict[int, dict[str, float | None]]]]]]]

Accessor to the internal data container

reset(self) → None

Reset the state of the logger

watch(self, arg: ioh.iohcpp.logger.property.AbstractProperty, /) → None
watch(self, arg0: object, arg1: str, /) → None
watch(self, arg0: object, arg1: collections.abc.Sequence[str], /) → None

Overloaded function.

  1. watch(self, arg: ioh.iohcpp.logger.property.AbstractProperty, /) -> None

Add a property

  1. watch(self, arg0: object, arg1: str, /) -> None

Add a property

  1. watch(self, arg0: object, arg1: collections.abc.Sequence[str], /) -> None

Add multliple properties