Runner#
- class pams.runners.Runner(settings, prng=None, logger=None, simulator_class=<class 'pams.simulator.Simulator'>)[ソース]#
Runner of the market simulator class (Abstract class).
- class_register(cls)[ソース]#
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.
- パラメータ:
cls (Type) -- class to register.
- 戻り値の型:
None
- 戻り値:
None
- static judge_hft_or_not(agent)[ソース]#
determine if the agent is type of the
pams.agents.HighFrequencyAgent
.- パラメータ:
agent (Agent) -- agent instance.
- 戻り値:
whether the agent class is the
pams.agents.HighFrequencyAgent
or not.- 戻り値の型:
bool