mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-25 00:26:54 +01:00
18 lines
348 B
C++
18 lines
348 B
C++
#ifndef __SOLVER_H__
|
|
#define __SOLVER_H__
|
|
|
|
#include "sim_local.h"
|
|
|
|
class CSolver {
|
|
class CSimulation *sim;
|
|
|
|
void floodJunctions(class CJunction *ju, float voltage, float duty, int depth = 0);
|
|
public:
|
|
void setSimulation(class CSimulation *p) {
|
|
sim = p;
|
|
}
|
|
void solveVoltages();
|
|
bool hasPath(class CJunction *a, class CJunction *b);
|
|
};
|
|
|
|
#endif |