1 #include "rule_single_pin_net.hpp"
2 #include "util/util.hpp"
3 #include <sstream>
4 #include "nlohmann/json.hpp"
5 
6 namespace horizon {
RuleSinglePinNet()7 RuleSinglePinNet::RuleSinglePinNet() : Rule()
8 {
9     id = RuleID::SINGLE_PIN_NET;
10 }
11 
RuleSinglePinNet(const json & j)12 RuleSinglePinNet::RuleSinglePinNet(const json &j) : Rule(j)
13 {
14     id = RuleID::SINGLE_PIN_NET;
15     include_unnamed = j.at("include_unnamed");
16 }
17 
serialize() const18 json RuleSinglePinNet::serialize() const
19 {
20     json j = Rule::serialize();
21     j["include_unnamed"] = include_unnamed;
22     return j;
23 }
24 
get_brief(const class Block * block) const25 std::string RuleSinglePinNet::get_brief(const class Block *block) const
26 {
27     return "";
28 }
29 } // namespace horizon
30