Runner#
- class pams.runners.Runner(settings, prng=None, logger=None, simulator_class=<class 'pams.simulator.Simulator'>)[source]#
Runner of the market simulator class (Abstract class).
See also
- class_register(cls)[source]#
register class. This method is used for user-defined classes.
Usually, user-defined classes, i.e., the classes you implemented for your original simulation, cannot be referred from pams package, especially from simulation runners. Therefore, the class registration to the runner is necessary.
- Parameters:
cls (Type) – class to register.
- Return type:
None
- Returns:
None
- static judge_hft_or_not(agent)[source]#
determine if the agent is type of the
pams.agents.HighFrequencyAgent
.- Parameters:
agent (Agent) – agent instance.
- Returns:
whether the agent class is the
pams.agents.HighFrequencyAgent
or not.- Return type:
bool