コード例 #1
0
 //Used only for the root because it does not have ancestor
 public NodeTargetCategorical()
     : base()
 {
     //Fill the TargetCategoricalCases
     TargetClasses = new TargetCategoricalClass(Def.Schema.Target, this);
     //Fills the TargetCases
     ImpCalc();
     if (Def.ExperimentRunning)
         return;
     UI = new NodeTargetCategoricalUI(this);
 }
コード例 #2
0
 public NodeTargetCategorical(Node ancestor)
     : base(ancestor)
 {
     //Fill the TargetCategoricalCases
     TargetClasses = new TargetCategoricalClass(Def.Schema.Target, this);
     //Imp = ancestor.DescendentImpPreCalculated[ancestor.DescendentLst.Count - 1];
     ImpCalc(); // Outdated use the PreCalculated
     UpdateLevelLst(this);
     if (Def.ExperimentRunning)
         return;
     UI = new NodeTargetCategoricalUI(this);
 }
コード例 #3
0
 public override void DisplayUpdate()
 {
     if (Def.ExperimentRunning)
         return;
     Point pos = UI.Location;
     UI.Dispose();
     UI = new NodeTargetCategoricalUI(this);
     UI.Location = pos;
 }