public class Crossing extends BuildingBlock
Constructor and Description |
---|
Crossing(int id,
int waveguideInput0,
int waveguideInput1,
int waveguideOutput0,
int waveguideOutput1)
Constructs a Crossing object connecting four waveguides.
|
Modifier and Type | Method and Description |
---|---|
int |
getMicroringIn0Out1() |
int |
getMicroringIn1Out0() |
int |
getWaveguideInput0() |
int |
getWaveguideInput1() |
int |
getWaveguideOutput0() |
int |
getWaveguideOutput1() |
void |
setMicroringIn0Out1(int microringIn0Out1) |
void |
setMicroringIn1Out0(int microringIn1Out0) |
void |
setWaveguideInput0(int wgID) |
void |
setWaveguideInput1(int wgID) |
void |
setWaveguideOutput0(int wgID) |
void |
setWaveguideOutput1(int wgID) |
getID
public Crossing(int id, int waveguideInput0, int waveguideInput1, int waveguideOutput0, int waveguideOutput1)
id
- the crossing building block identifier numberwaveguideInput0
- the first input waveguide IDwaveguideInput1
- the second input waveguide IDwaveguideOutput0
- the first output waveguide IDwaveguideOutput1
- the second output waveguide IDpublic int getWaveguideInput0()
public int getWaveguideInput1()
public int getWaveguideOutput0()
public int getWaveguideOutput1()
public int getMicroringIn0Out1()
public int getMicroringIn1Out0()
public void setMicroringIn0Out1(int microringIn0Out1)
microringIn0Out1
- the ID of the microring resonator
between the first input waveguide and the
second output waveguide to setpublic void setMicroringIn1Out0(int microringIn1Out0)
microringIn1Out0
- the ID of the microring resonator
between the second input waveguide
and the first output waveguide to setpublic void setWaveguideInput0(int wgID)
wgID
- the first input waveguide IDpublic void setWaveguideInput1(int wgID)
wgID
- the second input waveguide IDpublic void setWaveguideOutput0(int wgID)
wgID
- the first output waveguide IDpublic void setWaveguideOutput1(int wgID)
wgID
- the second output waveguide ID