2#ifndef GYM_PCB_RL_STATEREPRESENTATION_H
3#define GYM_PCB_RL_STATEREPRESENTATION_H
22 virtual PyObject *getPy(PyObject *args) {
return py::None(); }
24 virtual void init(
PCBoard &PCB) { mPCB = &PCB; }
25 virtual ~StateRepresentation() { }
26 virtual void reset() { }
27 virtual const char *name()
const {
return ""; }
33 virtual void setFocus(
const std::vector<Connection *> *) { }
35 virtual void updateView(
const Bbox_2 * = 0) { }
37 void setLockedView(
bool v) { mLockedView = v; }
43 const Connection *mFocus{0};
44 bool mLockedView{
false};
NOTE: Actions always set the Agent's least recently used connction (getConnectionLRU()) which is some...
Definition Action.hpp:14
Definition Connection.hpp:17
Definition PCBoard.hpp:36
The subclass create(PyObject *) functions check if the PyObject matches and return a new instace if i...
Definition StateRepresentation.hpp:17
virtual void logAction(const Action *)
logAction() is used for state representations like an action sequence as used e.g....
Definition StateRepresentation.hpp:40
static StateRepresentation * create(PyObject *)
Create a new intance of a subclas as specified by the PyObject.
void setFocus(const Connection *)
Definition StateRepresentation.hpp:47