2013-12-13 04:31:47 +00:00
|
|
|
/*
|
|
|
|
* File: StateCalculator.h
|
|
|
|
* Author: Christopher
|
|
|
|
*
|
|
|
|
* Created on December 12, 2013, 8:29 PM
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STATECALCULATOR_H
|
|
|
|
#define STATECALCULATOR_H
|
|
|
|
|
|
|
|
#include <set>
|
2013-12-15 17:49:18 +00:00
|
|
|
#include "SegmentTypes.h"
|
2013-12-15 05:23:25 +00:00
|
|
|
|
|
|
|
class Trans;
|
2013-12-13 04:31:47 +00:00
|
|
|
|
2013-12-15 17:49:18 +00:00
|
|
|
class StateCalculator final {
|
2013-12-13 04:31:47 +00:00
|
|
|
public:
|
2013-12-14 23:10:32 +00:00
|
|
|
|
2013-12-15 17:49:18 +00:00
|
|
|
static void recalc(const SegmentSet& rSeg);
|
2013-12-13 04:31:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2013-12-14 06:04:55 +00:00
|
|
|
StateCalculator() {
|
|
|
|
}
|
2013-12-13 04:31:47 +00:00
|
|
|
|
2013-12-14 23:10:32 +00:00
|
|
|
StateCalculator(const StateCalculator&) = delete;
|
|
|
|
StateCalculator& operator=(const StateCalculator&) = delete;
|
2013-12-13 04:31:47 +00:00
|
|
|
|
|
|
|
void recalcNode(Segment* seg);
|
2013-12-14 04:06:13 +00:00
|
|
|
void setSeg(Segment* s, const bool on);
|
2013-12-13 04:31:47 +00:00
|
|
|
void setTrans(Trans* t, const bool on);
|
|
|
|
|
2013-12-15 17:49:18 +00:00
|
|
|
SegmentSet segs;
|
2013-12-13 04:31:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* STATECALCULATOR_H */
|