thermal_entity.hh (11420:b48c0ba4f524) thermal_entity.hh (11800:54436a1784dc)
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

--- 26 unchanged lines hidden (view full) ---

35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: David Guillen Fandos
38 */
39
40#ifndef __SIM_THERMAL_ENTITY_HH__
41#define __SIM_THERMAL_ENTITY_HH__
42
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

--- 26 unchanged lines hidden (view full) ---

35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: David Guillen Fandos
38 */
39
40#ifndef __SIM_THERMAL_ENTITY_HH__
41#define __SIM_THERMAL_ENTITY_HH__
42
43#include "sim/linear_solver.hh"
44
43class LinearEquation;
45class ThermalNode;
46
47/**
48 * An abstract class that represents any thermal entity which is used
49 * in the circuital thermal equivalent model. It is necessary for
50 * ThermalModel to be able to solve the circuit.
51 */
52class ThermalEntity
53{
54 public:
55 // Get the equation given a node and a step in seconds (assuming N nodes)
56 virtual LinearEquation getEquation(ThermalNode *tn, unsigned n,
57 double step) const = 0;
58};
59
60
61#endif
44class ThermalNode;
45
46/**
47 * An abstract class that represents any thermal entity which is used
48 * in the circuital thermal equivalent model. It is necessary for
49 * ThermalModel to be able to solve the circuit.
50 */
51class ThermalEntity
52{
53 public:
54 // Get the equation given a node and a step in seconds (assuming N nodes)
55 virtual LinearEquation getEquation(ThermalNode *tn, unsigned n,
56 double step) const = 0;
57};
58
59
60#endif