Пример #1
0
        private void BuildList()
        {
            this.Reset();

            /* EQUIPMENTS */
            tube = new MicroTestTube();
            SimulationMixtureManager.instance.RegisterMixable(tube);
            SimulationManager.instance.AddEquipmentItem(tube);

            rack = new Rack();
            SimulationMixtureManager.instance.RegisterMixable(rack);
            SimulationManager.instance.AddEquipmentItem(rack);

            /* MATERIALS */
            var nacl = new SodiumChloride();

            SimulationManager.instance.AddMaterial(nacl);

            var naph = new Naphthalene();

            SimulationManager.instance.AddMaterial(naph);

            water = new Water();
            SimulationManager.instance.AddMaterial(water);

            kerosene = new Kerosene();
            SimulationManager.instance.AddMaterial(kerosene);

            /* REGISTRATION */
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(rack, tube);

            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(rack, nacl);
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(rack, naph);

            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(rack, water);
            SimulationMixtureManager.instance.AddAllowableMixtureToMixable(rack, kerosene);

            this.Publish();
        }
Пример #2
0
 public MicroTestTube(MicroTestTube other) : base(other)
 {
 }