예제 #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));
            }
        }
예제 #2
0
 public void RemoveFromSimulator(Simulator simulator)
 {
     API.iplSourceRemove(mSource, simulator.Get());
 }
예제 #3
0
 public void AddToSimulator(Simulator simulator)
 {
     API.iplSourceAdd(mSource, simulator.Get());
 }