Beispiel #1
0
        public int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }

            Systeme s = obj as Systeme;

            if (s != null)
            {
                return(this.priority.CompareTo(s.priority));
            }
            else
            {
                throw new ArgumentException("Object is not a Temperature");
            }
        }
Beispiel #2
0
 public void RemoveSystem(Systeme s)
 {
     systemList.Remove(s);
     s.RemoveFromEngine(this);
 }
Beispiel #3
0
 public void AddSystem(Systeme s, Systeme.Priority p)
 {
     s.priority = p;
     s.AddIntoEngine(this);
     systemList.Add(s);
 }