Loading files
package MinecraftGraph;
public class Function extends Vertex {
private FunctionType func_type;
private int inputs;
private int connectedInputs=0;
public Function(VertexType v_t, FunctionType f_t, int x){
super.type=v_t;
this.func_type=f_t;
this.inputs=x;
}
public FunctionType getFunc_Type(){
return this.func_type;
}
public int get_num_inputs(){
return inputs;
}
protected boolean canAdd(){
if(inputs==connectedInputs){
return false;
}
else{
return true;
}
}
@Override
protected void addNext(Vertex v){
connectedInputs++;
super.addNext(v);
}
}
944979339This file is pinned to the selected release. Download the original to open it in your design tool.