Esempio n. 1
0
 public PlanVersion(PlanVersionSnapshot snapshot)
 {
     _version       = new VersionData(snapshot.Version);
     _simulations   = snapshot.Simulations.Select(x => new Simulation(x)).ToList();
     _name          = snapshot.Name;
     _actions       = snapshot.Actions;
     _resourceTypes = snapshot.ResourceTypes;
     _depot         = snapshot.Depot;
     _readonly      = new ReadonlyMixin(true);
 }
Esempio n. 2
0
 public SimulationVersion(SimulationVersionSnapshot snapshot)
 {
     _version  = new VersionData(snapshot.Version);
     _runs     = snapshot.Runs;
     _readonly = new ReadonlyMixin(true);
 }
Esempio n. 3
0
 private SimulationVersion(SimulationVersionSnapshot snapshot, UserReference user) : this(snapshot)
 {
     _version  = _version.Increment(user);
     _readonly = new ReadonlyMixin(false);
 }