public class Waveguide extends BuildingBlock
Constructor and Description |
---|
Waveguide(int id)
Constructs a waveguide object given an identifier number.
|
Waveguide(int id,
int inputCrossingID,
int outputCrossingID)
Constructs a waveguide object connecting two waveguide crossings.
|
Waveguide(int id,
int inputCrossingID,
int outputCrossingID,
double length)
Constructs a waveguide object connecting two waveguide crossings.
|
Modifier and Type | Method and Description |
---|---|
int |
getInputCrossingID() |
int |
getInputPort() |
double |
getLength() |
int |
getMicroringPPSE(int index) |
int |
getNumMicroringPPSE() |
int |
getOutputCrossingID() |
int |
getOutputPort() |
void |
setInputPort(int input_port) |
void |
setLength(double length) |
void |
setMicroringPPSE(int microringPPSE) |
void |
setOutputPort(int output_port) |
getID
public Waveguide(int id)
id
- the waveguide building block identifier numberpublic Waveguide(int id, int inputCrossingID, int outputCrossingID)
id
- the waveguide building block identifier numberinputCrossingID
- the input waveguide crossings IDoutputCrossingID
- the output waveguide crossings IDpublic Waveguide(int id, int inputCrossingID, int outputCrossingID, double length)
id
- the waveguide building block identifier numberinputCrossingID
- the input waveguide crossings IDoutputCrossingID
- the output waveguide crossings IDlength
- the length of this waveguide. This value is used to calculate the propagation loss.public int getInputCrossingID()
public int getOutputCrossingID()
public int getMicroringPPSE(int index)
index
- The index of the microring in the arrayListpublic void setMicroringPPSE(int microringPPSE)
microringPPSE
- the ID of the microring resonator
used for a parallel PSEpublic int getNumMicroringPPSE()
public int getInputPort()
public void setInputPort(int input_port)
input_port
- the input port in case of an
input waveguidepublic int getOutputPort()
public void setOutputPort(int output_port)
output_port
- the output port in case of an
output waveguidepublic double getLength()
public void setLength(double length)
length
- the value to assign for the length of this waveguide