示例#1
0
 public void SetState(FLOWObject flowObjectIn)
 {
     foreach (StatisticsState statisticsState in this.statistics)
     {
         statisticsState.SetState(flowObjectIn.Statistics[statisticsState.Name]);
     }
 }
示例#2
0
 public void GetState(FLOWObject flowObjectIn)
 {
     this.name = flowObjectIn.Name;
     foreach (string key in flowObjectIn.Statistics.Keys)
     {
         StatisticsState statistics = new StatisticsState();
         statistics.GetState(flowObjectIn.Statistics[key], key);
         this.statistics.Add(statistics);
     }
 }
示例#3
0
 public StaticObject(string nameIn, FLOWObject parentIn, int capacityIn)
     : base(nameIn, parentIn)
 {
     this.capacity = capacityIn;
     this.content  = new MovableObjectList();
 }
示例#4
0
 public virtual void ChangeLocation(double timeIn, FLOWObject locationIn)
 {
 }
示例#5
0
 public MovableObject(string nameIn, FLOWObject parentIn)
     : base(nameIn, parentIn)
 {
 }
示例#6
0
 public virtual void RelateObjects(FLOWObject parentIn)
 {
     this.parent = parentIn;
 }
示例#7
0
 public FLOWObject(string nameIn, FLOWObject parentIn)
 {
     this.name       = nameIn;
     this.parent     = parentIn;
     this.statistics = new StatisticsStringDictionary();
 }