Class BasePin
java.lang.Object
io.zucchini.circuitsimtester.api.BasePin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.ra4king.circuitsim.simulator.components.wiring.Pin
ThePin
wrapped by this instance.protected Subcircuit
TheSubcircuit
where this pin lives -
Constructor Summary
ConstructorsConstructorDescriptionBasePin
(com.ra4king.circuitsim.simulator.components.wiring.Pin pin, Subcircuit subcircuit) Creates a new BasePin which wraps the providedPin
component and which lives in the providedSubcircuit
. -
Method Summary
Modifier and TypeMethodDescriptioncom.ra4king.circuitsim.simulator.components.wiring.Pin
getPin()
Returns the internal CircuitSimPin
component this object wraps.Returns theSubcircuit
, a wrapper around a CircuitSimCircuitBoard
where this Pin lives.
-
Field Details
-
pin
protected com.ra4king.circuitsim.simulator.components.wiring.Pin pinThePin
wrapped by this instance. -
subcircuit
TheSubcircuit
where this pin lives
-
-
Constructor Details
-
BasePin
Creates a new BasePin which wraps the providedPin
component and which lives in the providedSubcircuit
.- Parameters:
pin
-Pin
component to wrapsubcircuit
- where this pin lives
-
-
Method Details
-
getPin
public com.ra4king.circuitsim.simulator.components.wiring.Pin getPin()Returns the internal CircuitSimPin
component this object wraps.This exposes an internal CircuitSim API. Do not use unless you know what you are doing.
- Returns:
- the CircuitSim
Pin
component wrapped by this object. - See Also:
-
getSubcircuit
Returns theSubcircuit
, a wrapper around a CircuitSimCircuitBoard
where this Pin lives.- Returns:
- the
Subcircuit
where this pin lives
-