totalValue += sum[i]->TotalValue();
SDtotal += sum[i]->GetSD();
}
- //cout << totalValue << " " << FGCoefficient::TotalValue() << endl;
totalValue *= FGCoefficient::TotalValue();
SDtotal *= FGCoefficient::GetSD();
Debug(2);
return totalValue;
}
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+
+void FGFactorGroup::bind(FGPropertyManager* parent)
+{
+ unsigned i;
+ node=parent->GetNode(name,true);
+ node->SetString("description",description);
+ FGCoefficient::bind(node);
+ for (i=0; i < sum.size(); i++) {
+ sum[i]->bind(node);
+ }
+ node=(FGPropertyManager*)node->getParent();
+
+}
+
+/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+
+void FGFactorGroup::unbind(void)
+{
+ unsigned i;
+ FGCoefficient::unbind();
+ for (i=0; i < sum.size(); i++) {
+ sum[i]->unbind();
+ }
+}
+
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
// The bitmasked value choices are as follows:
// unset: In this case (the default) JSBSim would only print