Ejemplo n.º 1
0
 // Helper functions for setting information in GUI elements
 private void SetGUITrial(Trial trial)
 {
     SetTransitionParameters(trial.GetTransitionParameters());
     SetRewardParameters(trial.GetRewardParameters());
     SetLeftStimulus(trial.GetLeftStimulus());
     SetRightStimulus(trial.GetRightStimulus());
     trial_name.Text           = trial.GetName();
     block_presentations.Value = trial.GetBlockPresentations();
 }
Ejemplo n.º 2
0
        public void XMLWriteTrial(XmlWriter xmlWriter, Trial trial, int id)
        {
            xmlWriter.WriteStartElement("trial");
            xmlWriter.WriteAttributeString("id", id.ToString());
            xmlWriter.WriteAttributeString("name", trial.GetName());

            XMLWriteRewardParameters(xmlWriter, trial.GetRewardParameters());
            XMLWriteTransitionParameters(xmlWriter, trial.GetTransitionParameters());
            XMLWriteStimulusParameters(xmlWriter, trial.GetLeftStimulus(), "left");
            XMLWriteStimulusParameters(xmlWriter, trial.GetLeftStimulus(), "right");

            xmlWriter.WriteEndElement();
        }
Ejemplo n.º 3
0
 // Helper functions for setting information in GUI elements
 private void SetGUITrial(Trial trial)
 {
     SetTransitionParameters(trial.GetTransitionParameters());
     SetRewardParameters(trial.GetRewardParameters());
     SetLeftStimulus(trial.GetLeftStimulus());
     SetRightStimulus(trial.GetRightStimulus());
     trial_name.Text = trial.GetName();
     block_presentations.Value = trial.GetBlockPresentations();
 }
        public void XMLWriteTrial(XmlWriter xmlWriter, Trial trial, int id)
        {
            xmlWriter.WriteStartElement("trial");
            xmlWriter.WriteAttributeString("id",id.ToString());
            xmlWriter.WriteAttributeString("name",trial.GetName());

            XMLWriteRewardParameters(xmlWriter, trial.GetRewardParameters());
            XMLWriteTransitionParameters(xmlWriter, trial.GetTransitionParameters());
            XMLWriteStimulusParameters(xmlWriter, trial.GetLeftStimulus(), "left");
            XMLWriteStimulusParameters(xmlWriter, trial.GetLeftStimulus(), "right");

            xmlWriter.WriteEndElement();
        }