@@ -22,7 +22,7 @@ public class SimulationBuilder
2222 private readonly Cache < string , BuilderSource > _builderSources = new Cache < string , BuilderSource > ( x => x . Builder . Id , x => null ) ;
2323
2424 //Cache of entity source by id and not by path. It is required because the path is not available at time of construction in the entity
25- private readonly Cache < string , EntitySource > _entitySources = new Cache < string , EntitySource > ( onMissingKey : x => null ) ;
25+ private readonly Cache < string , SimulationEntitySource > _entitySources = new Cache < string , SimulationEntitySource > ( onMissingKey : x => null ) ;
2626
2727 public SimulationBuilder ( SimulationConfiguration simulationConfiguration )
2828 {
@@ -32,13 +32,13 @@ public SimulationBuilder(SimulationConfiguration simulationConfiguration)
3232
3333 public bool CreateAllProcessRateParameters => _simulationConfiguration . CreateAllProcessRateParameters ;
3434
35- public IEntity BuilderFor ( IEntity modelObject ) => EntitySourceFor ( modelObject ) ? . Source ;
35+ public IEntity BuilderFor ( IEntity modelObject ) => SimulationEntitySourceFor ( modelObject ) ? . Source ;
3636
37- internal EntitySource EntitySourceFor ( IEntity entity ) => _entitySources [ entity . Id ] ;
37+ internal SimulationEntitySource SimulationEntitySourceFor ( IEntity entity ) => _entitySources [ entity . Id ] ;
3838
39- internal void AddEntitySource ( string entityId , EntitySource entitySource )
39+ internal void AddSimulationEntitySource ( string entityId , SimulationEntitySource simulationEntitySource )
4040 {
41- _entitySources [ entityId ] = entitySource ;
41+ _entitySources [ entityId ] = simulationEntitySource ;
4242 }
4343
4444 internal IEnumerable < MoleculeBuilder > AllPresentMolecules ( )
@@ -203,7 +203,7 @@ private void addMolecules(IMoleculeDependentBuilder builder, MoleculeList molecu
203203 internal IReadOnlyCollection < ParameterValue > ParameterValues => _parameterValues ;
204204 internal IReadOnlyCollection < InitialCondition > InitialConditions => _initialConditions ;
205205
206- public IReadOnlyCollection < EntitySource > EntitySources => _entitySources ;
206+ public IReadOnlyCollection < SimulationEntitySource > EntitySources => _entitySources ;
207207
208208 internal MoleculeList MoleculeListFor ( IMoleculeDependentBuilder builder ) => _moleculeListCache [ builder ] ;
209209
0 commit comments