Esempio n. 1
0
 public GrowingPlant(PlantDetails details, ISchedule schedule)
 {
     PlantDetails = details;
     schedule.AddAgent(this);
 }
Esempio n. 2
0
 public Plant(PlantDetails details, ISchedule schedule = null)
 {
     PlantDetails = details;
     schedule?.AddAgent(this);
     // for IScheduleAgent aspects, do I need to link back to my entity?
 }