Commit f0b441a2 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Fix #67

Showing with 12 additions and 7 deletions
+12 -7
import { CalculatorType } from "../compute-node"; import { CalculatorType, ComputeNode } from "../compute-node";
import { Nub } from "../nub"; import { Nub } from "../nub";
import { Interval } from "../util/interval"; import { Interval } from "../util/interval";
import { Message, MessageCode } from "../util/message"; import { Message, MessageCode } from "../util/message";
...@@ -108,6 +108,17 @@ export class ParamDefinition implements INamedIterableValues, IObservable { ...@@ -108,6 +108,17 @@ export class ParamDefinition implements INamedIterableValues, IObservable {
return this.nubUid + "_" + this._symbol; return this.nubUid + "_" + this._symbol;
} }
get parentComputeNode(): ComputeNode {
let parentCN: ComputeNode;
if (this._parent) {
// ComputeNode utilisant le ParamsEquation
parentCN = this._parent.parent;
} else {
throw new Error("ParamDefinition.parentNub : parameter has no parent !");
}
return parentCN;
}
/** /**
* Identifiant unique du Nub parent * Identifiant unique du Nub parent
*/ */
......
...@@ -266,10 +266,4 @@ export abstract class Structure extends Nub { ...@@ -266,10 +266,4 @@ export abstract class Structure extends Nub {
} }
} }
protected setExtraResultsFamilies() {
this._extraResultsFamilies = {
Q: ParamFamily.FLOWS
};
}
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment