Assembly: OpenTD.Results.dll
IBrowser interface providing methods for
Heatmap and HeatBetween nodes and node collecions.
Methods
GetHeatBetween(IEnumerable<INodeInfo>, IEnumerable<INodeInfo>)
Gets the heat between twoINodeInfo collections.
Positive for fromNodes -> toNodes.
Parameters
fromNodes IEnumerable<INodeInfo>
From nodes.
toNodes IEnumerable<INodeInfo>
To nodes.
Returns
HeatratesBetween TheHeatRatesBetween object with comparison results.
GetHeatBetween(IEnumerable<INodeInfo>, IEnumerable<ITieInfo>)
Gets the heat between aINodeInfo collection and a ITieInfo collection.
Positive for fromNodes -> toTies.
Parameters
fromNodes IEnumerable<INodeInfo>
From nodes.
toTies IEnumerable<ITieInfo>
To ties.
Returns
HeatratesBetween TheHeatRatesBetween object with comparison results.
GetHeatBetweenSubmodels(string, string)
Gets the heatrates between submodels. Positive for fromSubmodel -> toSubmodel.Parameters
fromSubmodel string
From submodel name. Case insensitive.
toSubmodel string
To submodel name. Case insensitive.
Returns
HeatratesBetween TheHeatRatesBetween object with comparison results.
Remarks
At least one of the submodels must be a thermal submodel.Exceptions
OpenTDException Thrown if both input submodel name refer to fluid submodels, or if any submodels don’t exist.GetHeatMap(IEnumerable<INodeInfo>)
Gets the collection ofNodeHeatrates for each input node.
Parameters
nodes IEnumerable<INodeInfo>
A collection of INodeInfo
objects for which to map heatrates.
Returns
List<NodeHeatrates> A collection ofNodeHeatrates, one for each of the input nodes.
GetHeatMap(IEnumerable<SindaName>)
Gets the collection ofNodeHeatrates corresponding to each input node name.
Parameters
nodeNames IEnumerable<SindaName>
A collection of INodeInfo SindaNames.
Returns
List<NodeHeatrates> A collection ofNodeHeatrates, one for each of the input node names.