public class Circuit
extends java.lang.Object
Constructor and Description |
---|
Circuit() |
Modifier and Type | Method and Description |
---|---|
int |
addInput() |
int |
addOutput() |
protected boolean |
chkInputGate(Piece p,
int idPed) |
Piece |
createPiece(int tipo,
int x,
int y) |
void |
deleteInput(int idInput) |
void |
deleteLink(int idLink) |
void |
deleteLink(LCE.model.Link t) |
void |
deleteOutput(int idLed) |
void |
deletePiece(int ID) |
void |
deletePiece(Piece c) |
java.util.ArrayList<Input> |
getInput() |
int |
getInputLink(int idLink) |
int |
getInputLink(LCE.model.Link t) |
boolean |
getInputOfPiece(int idPiece,
int idIn) |
java.util.ArrayList<LCE.model.Led> |
getOutput() |
int |
getOutputLink(int idLink) |
int |
getOutputLink(LCE.model.Link t) |
boolean |
getOutputOfPiece(int idPiece,
int idIn) |
int |
indexOfPiece(Piece c) |
int |
insertLink(int in,
int out,
int idIn,
int idOut) |
void |
insertLink(LCE.model.Link t) |
int |
insertLink(Piece in,
Piece out,
int idIn,
int idOut) |
int |
insertPiece(int tipo,
int x,
int y) |
int |
insertPiece(Piece c) |
void |
isolateGate(int ID) |
void |
isolateInput(int ID) |
void |
isolateOutput(int ID) |
int |
numInput() |
int |
numOutput() |
void |
refreshCircuit() |
Input |
searchInput(int idInput) |
LCE.model.Link |
searchLink(int idLink) |
LCE.model.Led |
searchOutput(int idOutput) |
Piece |
searchPiece(int ID) |
Piece |
searchPiece(int _x,
int _y) |
void |
setGatePosition(int idPiece,
int x,
int y) |
void |
setInput(int idInput,
boolean value) |
void |
setInputOfGate(int idIn,
boolean value,
int idGate) |
void |
setLed(int idLed,
boolean value) |
java.lang.String |
StampaLine() |
java.lang.String |
StampaPieces() |
int |
typeOfGate(int idPiece) |
public Piece searchPiece(int ID)
public int indexOfPiece(Piece c)
public int insertPiece(Piece c)
public int insertPiece(int tipo, int x, int y)
public void deletePiece(Piece c)
public Piece createPiece(int tipo, int x, int y)
public int typeOfGate(int idPiece)
public void deletePiece(int ID)
public Piece searchPiece(int _x, int _y)
public void setInputOfGate(int idIn, boolean value, int idGate)
public boolean getInputOfPiece(int idPiece, int idIn)
public boolean getOutputOfPiece(int idPiece, int idIn)
public void insertLink(LCE.model.Link t)
public int insertLink(int in, int out, int idIn, int idOut)
public LCE.model.Link searchLink(int idLink)
public int getInputLink(LCE.model.Link t)
public int getInputLink(int idLink)
public int getOutputLink(LCE.model.Link t)
public int getOutputLink(int idLink)
public void deleteLink(int idLink)
public void deleteLink(LCE.model.Link t)
protected boolean chkInputGate(Piece p, int idPed)
public void isolateGate(int ID)
public Input searchInput(int idInput)
public void isolateInput(int ID)
public int numInput()
public java.util.ArrayList<Input> getInput()
public void setInput(int idInput, boolean value)
public int numOutput()
public java.util.ArrayList<LCE.model.Led> getOutput()
public int addInput()
public void deleteInput(int idInput)
public LCE.model.Led searchOutput(int idOutput)
public void isolateOutput(int ID)
public int addOutput()
public void deleteOutput(int idLed)
public void refreshCircuit()
public java.lang.String StampaPieces()
public java.lang.String StampaLine()
public void setLed(int idLed, boolean value)
public void setGatePosition(int idPiece, int x, int y)