mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 15:26:52 -04:00
added a pin direction
This commit is contained in:
parent
74a9dc1574
commit
25f5d9da2d
@ -6,15 +6,28 @@ import de.neemann.digital.gui.draw.graphics.Vector;
|
||||
* @author hneemann
|
||||
*/
|
||||
public class Pin {
|
||||
private Vector pos;
|
||||
private String name;
|
||||
|
||||
public Pin(Vector pos, String name) {
|
||||
private final Vector pos;
|
||||
private final String name;
|
||||
private final Direction direction;
|
||||
|
||||
public Pin(Vector pos, String name, Direction direction) {
|
||||
this.pos = pos;
|
||||
this.name = name;
|
||||
this.direction = direction;
|
||||
}
|
||||
|
||||
public Vector getPos() {
|
||||
return pos;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Direction getDirection() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
public enum Direction {input, output, both}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user