Exemplo n.º 1
0
 public ItemScore(TestItem ti, TestItemScoreInfo si, double score, bool isSelected, bool isFT)
 {
     this.ti          = ti;
     this.si          = si;
     this.score       = score;
     this.isSelected  = isSelected;
     this.isFieldTest = isFT;
 }
Exemplo n.º 2
0
 public ItemScore(TestItem ti, TestItemScoreInfo si, double score, string conditionCode, bool isFT, bool isSelected, bool isAttempted)
 {
     this.ti            = ti;
     this.si            = si;
     this.score         = score;
     this.conditionCode = conditionCode;
     this.isSelected    = isSelected;
     this.isAttempted   = isAttempted;
     this.isFieldTest   = isFT;
 }
Exemplo n.º 3
0
        public void SetFeature(string dimension, IRTModelFactory.Model model, string featureName, string featureValue)
        {
            TestItemScoreInfo score = FindScoreInfo(dimension, model);

            if (score == null)
            {
                throw new Exception("Item " + this.ItemName + " does not have dimension " + dimension + " and IRT model " + model.ToString());
            }
            score.SetFeature(featureName, featureValue);
        }
Exemplo n.º 4
0
 public ItemScore(TestItem ti, TestItemScoreInfo si, int position, double score, string conditionCode, string segmentID, bool isFT, bool isSelected, bool isAttempted, bool isDropped)
 {
     this.ti            = ti;
     this.si            = si;
     this.position      = position;
     this.score         = score;
     this.conditionCode = conditionCode;
     this.segmentID     = segmentID;
     this.isSelected    = isSelected;
     this.isAttempted   = isAttempted;
     this.isFieldTest   = isFT;
     this.isDropped     = isDropped;
 }
Exemplo n.º 5
0
 public TestItemScoreInfo DeepCopy()
 {
     TestItemScoreInfo copy = (TestItemScoreInfo)(this.MemberwiseClone());
     if (_features != null)
     {
         copy._features = new Dictionary<string, List<string>>();
         foreach (KeyValuePair<string, List<string>> kvp in _features)
             copy._features.Add(kvp.Key, new List<string>(kvp.Value));
     }
     if (irtModel != null)
         copy.irtModel = irtModel.DeepCopy();
     return copy;
 }