Exemplo n.º 1
0
        public Source(Simulator simulator, SimulationSettings simulationSettings)
        {
            var sourceSettings = new SourceSettings {
            };

            sourceSettings.flags = simulationSettings.flags;

            var status = API.iplSourceCreate(simulator.Get(), ref sourceSettings, out mSource);

            if (status != Error.Success)
            {
                throw new Exception(string.Format("Unable to create source for simulation. [{0}]", status));
            }
        }
Exemplo n.º 2
0
 public void RemoveFromSimulator(Simulator simulator)
 {
     API.iplSourceRemove(mSource, simulator.Get());
 }
Exemplo n.º 3
0
 public void AddToSimulator(Simulator simulator)
 {
     API.iplSourceAdd(mSource, simulator.Get());
 }