public class CircuitCommand
extends java.lang.Object
| Constructor and Description |
|---|
CircuitCommand() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
circuit() |
void |
clock(java.lang.String name)
Create a clock that reverses its output pin ever second.
|
WireDTO |
connect(java.lang.String fromDevice,
java.lang.String fromPin,
java.lang.String toDevice,
java.lang.String toPin)
Connect 2 ICs from an input pin to an output pin
|
boolean |
disconnect(int wireId)
Disconnect a wire by its ide
|
void |
gpo(java.lang.String name)
Create an IC that sends any input to System.out.
|
ICDTO[] |
ics()
List the ICs
|
java.util.List<WireDTO> |
wires()
List the wires
|
public java.lang.String circuit()
public java.util.List<WireDTO> wires()
public ICDTO[] ics()
public WireDTO connect(java.lang.String fromDevice,
java.lang.String fromPin,
java.lang.String toDevice,
java.lang.String toPin)
throws java.lang.Exception
fromDevice - The IC's id that is the sourcefromPin - the source's pintoDevice - the IC's id that is the destinationtoPin - the destination's pinjava.lang.Exceptionpublic boolean disconnect(int wireId)
throws java.lang.Exception
wireId - the wire's idjava.lang.Exceptionpublic void gpo(java.lang.String name)
name - the name/id of this ICpublic void clock(java.lang.String name)
name - The name/id of this ICCopyright (c) OSGi Alliance (2014, 2020). All Rights Reserved.