use derive_builder::Builder;
use crate::ToSpice;
#[derive(Debug, Clone, Builder)]
#[builder(setter(strip_option, into))]
pub struct BJT {
pub name: String, pub collector: String, pub base: String, pub emitter: String, pub model_name: String, }
impl ToSpice for BJT {
fn to_spice(&self) -> String {
format!(
"Q{} {} {} {} {}",
self.name,
self.collector,
self.base,
self.emitter,
self.model_name
)
}
}