Exemple #1
0
 public void AddRow(UserActivityRecord record)
 {
  StringBuilder row = new StringBuilder();
  row.Append("<Row>")
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", "ABVFeedback")
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", Settings.SubjectId)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", Settings.SessionNumber)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", DateTime.Now.ToString("g"))
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", Settings.Set)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", Settings.BlockNumber)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", rows.Count + 1)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.TargetType)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.Top.Type)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.Top.Image.Name)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.Bottom.Type)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.Bottom.Image.Name)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.Target.Position)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Trial.Target.Input)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.Selection)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", record.ResponseTime)
    .AppendFormat("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", record.IsCorrect)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", record.CurrentAB)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", record.CurrentABV)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", record.PreviousABV)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", record.TotalABV)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", record.TrialRTAverage)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">BASELINE_ABV</Data></Cell>")
    .AppendFormat("<Cell><Data ss:Type=\"Number\">AVERAGE_ABV</Data></Cell>")
    .AppendFormat("<Cell><Data ss:Type=\"Number\">MEDIAN_ABV</Data></Cell>")
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", Settings.NumberOfTrialsInAB)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", Settings.NumberOfABsInCurrentABV)
    .AppendFormat("<Cell><Data ss:Type=\"Number\">{0}</Data></Cell>", Settings.NumberOfCurrentABVInPreviousABV)
    .Append("</Row>");
  rows.Add(row);
 }
Exemple #2
0
 internal static void WriteTrial(Trial trial, int timeTillResponse, System.Windows.Forms.Keys userSelection, double currentAB, double currentABV, double previousABV, double totalABV, double trialRTAverage)
 {
  UserActivityRecord userActivityRecord = new UserActivityRecord(trial, timeTillResponse, userSelection, currentAB, currentABV, previousABV, totalABV, trialRTAverage);
  Records.Add(userActivityRecord);
 }