Files
OpenBK7231T_App/src/sim/Controller_SimulatorLink.h
2024-11-01 12:26:23 +01:00

25 lines
628 B
C++

#ifndef __CONTROLLER_SIMULATORLINK_H__
#define __CONTROLLER_SIMULATORLINK_H__
#include "sim_local.h"
#include "Controller_Base.h"
#include "Coord.h"
class CControllerSimulatorLink : public CControllerBase {
TArray<CJunction*> related;
bool bPowered;
public:
CControllerSimulatorLink();
void addRelatedJunction(CJunction *p) {
related.push_back(p);
}
virtual void onDrawn();
virtual void onPostSolveVoltages();
class CControllerBase *cloneController(class CShape *origOwner, class CShape *newOwner);
CJunction *findJunctionByGPIOIndex(int idx);
bool isPowered() const;
};
#endif // __CONTROLLER_SIMULATORLINK_H__