public override string GetStats() { string stats = base.GetStats(); stats += "\nType of input source 1: " + _sourceType1.ToString() + "\nType of input source 2: " + _sourceType2.ToString() + "\nProduction time: " + _productionTime.ToString() + "\nIs Assembling: " + _isAssembling; if (_firstInputSourcesQueue.Count > 0) { stats += "\nSources in queue: "; foreach (Source s in _firstInputSourcesQueue) { stats += s.name + " "; } } if (_secondInputSourcesQueue.Count > 0) { foreach (Source s in _secondInputSourcesQueue) { stats += s.name + " "; } } return(stats); }
public override string GetStats() { string stats = base.GetStats(); stats += "\nType of source produced: " + _sourceType.ToString() + "\nCreate a new source each " + _productionTime.ToString() + " seconds" + "\nTotal amount of sources created: " + _nSourcesCreated; if (BeginProductionAtStart) { stats += "\nThis provider begins the production when the simulation starts."; } return(stats); }