pub struct SimulateArgs {Show 19 fields
pub tagname: String,
pub template: String,
pub process_type: ProcessTypeArg,
pub controller_type: ControllerTypeArg,
pub relay_amp: f32,
pub cycles_skip: Option<u32>,
pub cycles_count: Option<u32>,
pub noise_protection_secs: Option<u32>,
pub sim_gain: f32,
pub sim_tau: f32,
pub sim_dead_time: f32,
pub sim_noise: f32,
pub sim_seed: u64,
pub sim_initial_pv: f32,
pub sim_initial_mv: f32,
pub notes: Option<String>,
pub yes: bool,
pub write_pid: Option<ResponseLevelArg>,
pub output: OutputFormat,
}Expand description
bhtune simulate: every field defaulted for a true zero-configuration demo run.
Fields§
§tagname: String§template: String§process_type: ProcessTypeArg§controller_type: ControllerTypeArg§relay_amp: f32§cycles_skip: Option<u32>§cycles_count: Option<u32>§noise_protection_secs: Option<u32>§sim_gain: f32§sim_tau: f32§sim_dead_time: f32§sim_noise: f32§sim_seed: u64§sim_initial_pv: f32§sim_initial_mv: f32§notes: Option<String>Operator notes to attach to this run. See TuneArgs::notes.
yes: boolSee TuneArgs::yes.
write_pid: Option<ResponseLevelArg>See TuneArgs::write_pid. Note the built-in FOPDT simulator has no PID constant
tags at all (see build_loop_tags), so write-back is always skipped for simulate
regardless of this flag – it’s accepted here purely so simulate’s flag surface
stays a strict defaulted subset of tune’s, matching every other field.
output: OutputFormatSee TuneArgs::output.
Implementations§
Source§impl SimulateArgs
impl SimulateArgs
Sourcepub fn into_tune_args(self) -> TuneArgs
pub fn into_tune_args(self) -> TuneArgs
Expands the defaulted simulate flags into a full TuneArgs with
--driver simulator implied, so simulate and tune share one execution path.
Trait Implementations§
Source§impl Args for SimulateArgs
impl Args for SimulateArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Clone for SimulateArgs
impl Clone for SimulateArgs
Source§fn clone(&self) -> SimulateArgs
fn clone(&self) -> SimulateArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for SimulateArgs
impl CommandFactory for SimulateArgs
Source§impl Debug for SimulateArgs
impl Debug for SimulateArgs
Source§impl FromArgMatches for SimulateArgs
impl FromArgMatches for SimulateArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for SimulateArgs
impl Parser for SimulateArgs
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for SimulateArgs
impl RefUnwindSafe for SimulateArgs
impl Send for SimulateArgs
impl Sync for SimulateArgs
impl Unpin for SimulateArgs
impl UnsafeUnpin for SimulateArgs
impl UnwindSafe for SimulateArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].