public AdaptedFriisArgs GetRadioArgs() { var min = new Vertex(-10, -10, -10); var max = new Vertex(10, 10, 10); var radioArgs = new AdaptedFriisArgs(); radioArgs.RadioBox.Resolution = 0.25F; radioArgs.RadioBox.MinCorner = min; radioArgs.RadioBox.MaxCorner = max; WriteJson(radioArgs, "adapted_friis_Args.json"); // update the positions always when the box changes radioArgs.RxPositions = radioArgs.RadioBox.CreateRxPositions(); return(radioArgs); }
private bool ValidateChannelArguments(ISimulatable sim) { AdaptedFriisArgs args = sim.Arguments as AdaptedFriisArgs; if (args.AttenuationExponent <= 1) { return(false); } if (args.AttenuationOffset < 0) { return(false); } // all okay return(true); }