Skip to content

Commit 30184b9

Browse files
author
Rúben André Barreiro
committed
Gate abstract class added
1 parent 1ef3bb9 commit 30184b9

File tree

1 file changed

+50
-0
lines changed
  • src/main/java/org/quisl/framework/java/instructions/gates

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package org.quisl.framework.java.instructions.gates;
2+
3+
public abstract class Gate {
4+
5+
private Integer numInputs;
6+
7+
private Integer numOutputs;
8+
9+
private String prefix;
10+
11+
private String gateName;
12+
13+
14+
public Gate(Integer numInputs, Integer numOutputs,
15+
String prefix, String gateName) {
16+
17+
this.numInputs = numInputs;
18+
this.numOutputs = numOutputs;
19+
20+
this.prefix = prefix;
21+
22+
this.gateName = gateName;
23+
24+
}
25+
26+
public Integer getNumInputs() {
27+
28+
return this.numInputs;
29+
30+
}
31+
32+
public Integer getNumOutputs() {
33+
34+
return this.numOutputs;
35+
36+
}
37+
38+
public String getPrefix() {
39+
40+
return this.prefix;
41+
42+
}
43+
44+
public String getGateName() {
45+
46+
return this.gateName;
47+
48+
}
49+
50+
}

0 commit comments

Comments
 (0)