Beispiel #1
0
        public static ExperimentStep getExperimentStepFromConfigNode(ConfigNode node, ExperimentData exp)
        {
            if (node.name != CONFIG_NODE_NAME)
            {
                NE_Helper.logError("getExperimentStepFromConfigNode: invalid Node: " + node.name);
                return(new ExperimentStep(exp, "", ""));
            }
            int            index = NE_Helper.GetValueAsInt(node, INDEX_VALUE);
            string         name  = node.GetValue(NAME_VALUE);
            ExperimentStep step  = createExperimentStep(node.GetValue(TYPE_VALUE), exp, name, index);

            step.load(node);
            return(step);
        }
        protected override void load(ConfigNode node)
        {
            base.load(node);

            activeStep = NE_Helper.GetValueAsInt(node, ACTIVE_VALUE);

            ConfigNode[] stepNodes = node.GetNodes(ExperimentStep.CONFIG_NODE_NAME);
            steps = new T[stepNodes.Length];
            for (int idx = 0, count = stepNodes.Length; idx < count; idx++)
            {
                var stepNode = stepNodes[idx];
                T   step     = (T)ExperimentStep.getExperimentStepFromConfigNode(stepNode, this);
                steps[step.getIndex()] = step;
            }
        }
Beispiel #3
0
 protected override void load(ConfigNode node)
 {
     base.load(node);
     testSubjectsNeeded = NE_Helper.GetValueAsInt(node, TEST_SUBJECTS_NEEDED);
 }