(props)
| 37 | |
| 38 | class EECBSVisualizer extends Component { |
| 39 | constructor(props) { |
| 40 | super(props); |
| 41 | this.state = { |
| 42 | numRow: DEFAULTROW, |
| 43 | numCol: DEFAULTCOL, |
| 44 | tempRow: DEFAULTROW, |
| 45 | tempCol: DEFAULTCOL, |
| 46 | map: new Array(DEFAULTROW).fill().map(() => |
| 47 | new Array(DEFAULTCOL).fill().map((u) => ({ |
| 48 | isWall: false, |
| 49 | isStart: false, |
| 50 | isGoal: false, |
| 51 | agent: -1, |
| 52 | color: "", |
| 53 | })) |
| 54 | ), |
| 55 | agents: [], |
| 56 | numAgents: 0, |
| 57 | addedSRow: null, |
| 58 | addedSCol: null, |
| 59 | addedGRow: null, |
| 60 | addedGCol: null, |
| 61 | snackbarOpen: false, |
| 62 | isError: false, |
| 63 | isMousePressed: false, |
| 64 | isPlanning: false, |
| 65 | isPlanned: false, |
| 66 | isAnimationFinished: false, |
| 67 | planningTime: -1, |
| 68 | planningStatus: "", |
| 69 | paths: [], |
| 70 | isInfoDialogOpen: true, |
| 71 | isDialogOpen: false, |
| 72 | isAlgDialogOpen: false, |
| 73 | |
| 74 | highLevelSolvers: ["A*", "A*eps", "EES", "NEW"], |
| 75 | heuristics: ["Zero", "CG", "DG", "WDG"], |
| 76 | inadmissibleHeuristics: ["Zero", "Global", "Path", "Local", "Conflict"], |
| 77 | |
| 78 | whichSolver: 2, |
| 79 | whichHeuristic: 3, |
| 80 | whichInadmissibleHeuristic: 1, |
| 81 | isSuboptimal: true, |
| 82 | suboptimality: 1.1, |
| 83 | isPrioritizeConflict: true, |
| 84 | isBypass: true, |
| 85 | isDisjointSplitting: false, |
| 86 | isRectangle: true, |
| 87 | isCorridor: true, |
| 88 | isTarget: true, |
| 89 | |
| 90 | algorithmSummary: "", |
| 91 | |
| 92 | startToAdd: false, |
| 93 | goalToAdd: false, |
| 94 | colorToAdd: "", |
| 95 | addedSRowClick: null, |
| 96 | addedSColClick: null, |
nothing calls this directly
no outgoing calls
no test coverage detected