Package edu.gatech.cs2110.circuitsim.api
Annotation Type SubcircuitPin
-
@Retention(RUNTIME) public @interface SubcircuitPin
InstructsCircuitSimExtension
to find and inject the Pin component into anInputPin
orOutputPin
field in a test class.When you annotate an
InputPin
orOutputPin
field in a test class with this,CircuitSimExtension
will search the subcircuit for a Pin component with direction (input/output) matching the type of the field, bitsizebits()
, and labellabel()
. Iflabel()
is""
(the default), it will search for a label matching the name of the field instead.
-
-
-
label
String label
The label of a matching Pin. If empty (the default),CircuitSimExtension
will use the name of the field.- Returns:
- The label of a matching Pin.
- Default:
- ""
-
-