java/ch/wlkl/processor/GateInL.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ch.wlkl.processor;
import java.util.ArrayList;
/**
*
* @author walter
*/
public class GateInL extends Gate {
public final ArrayList<Gate> in = new ArrayList();
public GateInL() {
super();
update();
}
public GateInL(Gate... gates) {
this();
if (gates != null)
for (Gate g : gates) {
addIn(g);
}
}
public GateInL addIn(Gate i) {
in.add(i);
i.addOut(this);
update();
return this;
}
}