public override void GlobalContext()
        {
            base.GlobalContext();
            _buildConfiguration = DomainFactoryForSpecs.CreateDefaultConfiguration();
            var spatialStructure = _buildConfiguration.SpatialStructure;

            _organism = spatialStructure.TopContainers.ElementAt(0);
            var volumeParameter = _organism.EntityAt <IParameter>(Constants.Parameters.VOLUME);

            volumeParameter.Persistable = true;
            _simulation = DomainFactoryForSpecs.CreateSimulationFor(_buildConfiguration);

            var simulationRunner = IoC.Resolve <ISimulationRunner>();

            simulationRunner.RunSimulation(_simulation);
        }
Exemplo n.º 2
0
 private IParameter startValueFor(IContainer molecule)
 {
     return(molecule.EntityAt <IParameter>(Constants.Parameters.START_VALUE));
 }