public class Tile
extends java.lang.Object
Constructor and Description |
---|
Tile(int id,
int row,
int column)
Constructs a Tile object.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn() |
int |
getId() |
Waveguide |
getInWaveguide(int p) |
Waveguide |
getOutWaveguide(int p) |
int |
getRow() |
java.lang.String |
getValues() |
void |
print()
Prints formatted representations of the object
to a text-output stream.
|
void |
setInWaveguide(int p,
Waveguide w)
Connects the input port p with the waveguide w.
|
void |
setOutWaveguide(int p,
Waveguide w)
Connects the output port p with the waveguide w.
|
public Tile(int id, int row, int column)
id
- The tile IDrow
- The rowcolumn
- The columnpublic java.lang.String getValues()
public void print()
public int getId()
public int getRow()
public int getColumn()
public Waveguide getInWaveguide(int p)
p
- The input portpublic void setInWaveguide(int p, Waveguide w)
p
- The input portw
- The waveguidepublic Waveguide getOutWaveguide(int p)
p
- The output portpublic void setOutWaveguide(int p, Waveguide w)
p
- The output portw
- The waveguide