public object Clone()
        {
            AdaptationProfile ap = (AdaptationProfile)this.MemberwiseClone();

            ap.flags = new List <string>();
            foreach (string s in flags)
            {
                ap.flags.Add((s != null ? s : null));
            }
            ap.initialState = (AdaptedState)initialState.Clone();
            ap.name         = (name != null ? name : null);
            ap.rules        = new List <AdaptationRule>();
            foreach (AdaptationRule ar in rules)
            {
                ap.rules.Add((AdaptationRule)ar.Clone());
            }
            ap.vars = new List <string>();
            foreach (string s in vars)
            {
                ap.vars.Add((s != null ? s : null));
            }
            ap.scorm12   = scorm12;
            ap.scorm2004 = scorm2004;
            return(ap);
        }
예제 #2
0
 /**
  * Adds new adaptation profile
  *
  * @param adaptProfile
  *            the new assessment profile to add
  */
 public void addAdaptationProfile(AdaptationProfile adaptProfile)
 {
     adaptationProfiles.Add(adaptProfile);
 }