1/* 2 * Copyright (c) 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 76 unchanged lines hidden (view full) --- 85 void unserialize(CheckpointIn &cp) override; 86 87 void setNodes(ThermalNode * n1, ThermalNode * n2) { 88 node1 = n1; 89 node2 = n2; 90 } 91 92 LinearEquation getEquation(ThermalNode * tn, unsigned n, |
93 double step) const override; |
94 95 private: 96 /* Resistance value in K/W */ 97 double _resistance; 98 /* Nodes connected to the resistor */ 99 ThermalNode * node1, * node2; 100}; 101 --- 7 unchanged lines hidden (view full) --- 109 public: 110 typedef ThermalCapacitorParams Params; 111 ThermalCapacitor(const Params *p); 112 113 void serialize(CheckpointOut &cp) const override; 114 void unserialize(CheckpointIn &cp) override; 115 116 LinearEquation getEquation(ThermalNode * tn, unsigned n, |
117 double step) const override; |
118 119 void setNodes(ThermalNode * n1, ThermalNode * n2) { 120 node1 = n1; 121 node2 = n2; 122 } 123 124 private: 125 /* Capacitance value in J/K */ --- 12 unchanged lines hidden (view full) --- 138 typedef ThermalReferenceParams Params; 139 ThermalReference(const Params *p); 140 141 void setNode(ThermalNode * n) { 142 node = n; 143 } 144 145 LinearEquation getEquation(ThermalNode * tn, unsigned n, |
146 double step) const override; |
147 148 void serialize(CheckpointOut &cp) const override; 149 void unserialize(CheckpointIn &cp) override; 150 151 /* Fixed temperature value in centigrate degrees */ 152 double _temperature; 153 /* Nodes connected to the resistor */ 154 ThermalNode * node; --- 16 unchanged lines hidden (view full) --- 171 void addReference(ThermalReference * r); 172 void addCapacitor(ThermalCapacitor * c); 173 void addResistor(ThermalResistor * r); 174 175 void addNode(ThermalNode * n) { nodes.push_back(n); } 176 177 double getTemp() const; 178 |
179 void startup() override; |
180 void doStep(); 181 182 void serialize(CheckpointOut &cp) const override; 183 void unserialize(CheckpointIn &cp) override; 184 private: 185 186 /* Keep track of all components used for the thermal model */ 187 std::vector <ThermalDomain *> domains; --- 19 unchanged lines hidden --- |