Skip to content

Commit 274395a

Browse files
committed
- updated help page
- removed input and output gates - circuit generator uses toggles instead of input gates
1 parent 590f5f5 commit 274395a

File tree

14 files changed

+41
-144
lines changed

14 files changed

+41
-144
lines changed

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
run:
2-
gradle shadowjar
3-
java -jar build/libs/LogicCircuitSimulator-all.jar
2+
./gradlew run
3+
4+
check:
5+
./gradlew shadowjar
6+
java -jar build/libs/LogicCircuitSimulator-all.jar Simulator.jar
47

58
install:
6-
gradle shadowjar
9+
./gradlew shadowjar
710
cp build/libs/LogicCircuitSimulator-all.jar Simulator.jar
811
chmod +x Simulator.jar
912

1013
install_win:
11-
gradle createExe
14+
./gradlew createExe
1215
cp build/launch4j/Simulator.exe Simulator.exe
1316

1417
install_jlink:

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ java {
6161

6262
application {
6363
// Define the main class for the application.
64-
mainClassName = 'LogicCircuitSimulator/LogicCircuitSimulator.Launcher'
64+
mainClassName = 'LogicCircuitSimulator.Launcher'
6565
}
6666

6767
javafx{
@@ -81,4 +81,4 @@ jlink {
8181
launcher {
8282
name = 'simulator'
8383
}
84-
}
84+
}

src/main/java/LogicCircuitSimulator/App.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public void start(Stage stage) {
2727
primaryStage = stage;
2828
app = this;
2929

30-
31-
//System.out.println(app.getClass());
3230
primaryStage.setTitle(stageTitle);
3331
stage.getIcons().add(new Image("file:resources/other/logo_grey.png"));
3432
loadAndSetNewScene("/FXML/StartMenu.fxml");

src/main/java/LogicCircuitSimulator/BooleanExpressionParser/CircuitGenerator/SimpleCircuitGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private void addInputs(NodeHandler nodeHandler, LogicElementHandler logicElement
6868
}
6969
alreadyShifted = false;
7070
connectIdentifiers(nodeHandler, output, inputs, shift);
71-
logicElementHandler.add(new InputGate(-neededSpace-1, i, Rotation.RIGHT));
71+
logicElementHandler.add(new ToggleOff(-neededSpace-1, i, Rotation.RIGHT));
7272
}
7373
}
7474

src/main/java/LogicCircuitSimulator/FxGUI/Board/BoardController.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ public void onOneButtonAction(ActionEvent actionEvent) {
118118
simulationController.setLogicGateDragged(new LogicOne(0,0, Rotation.RIGHT));
119119
}
120120

121-
public void onInButtonAction(ActionEvent actionEvent) {
122-
simulationController.setLogicGateDragged(new InputGate(0,0, Rotation.RIGHT));
123-
}
124-
125-
public void onOutButtonAction(ActionEvent actionEvent) {
126-
simulationController.setLogicGateDragged(new OutputGate(0,0, Rotation.RIGHT));
127-
}
128-
129121
public void onFromBooleanExpressionAction(ActionEvent actionEvent) {
130122
Dialog<String> dialog = new Dialog<>();
131123
dialog.setResizable(true);

src/main/java/LogicCircuitSimulator/FxGUI/CircuitGrid/Drawing/DrawSquareLogicElementVisitor.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,6 @@ public void visit(ButtonLogicElement buttonLogicElement) {
8282
drawGate(buttonLogicElement, "BTN");
8383
}
8484

85-
@Override
86-
public void visit(InputGate inputGate) {
87-
drawGate(inputGate, "IN");
88-
}
89-
90-
@Override
91-
public void visit(OutputGate outputGate) {
92-
drawGate(outputGate, "OUT");
93-
}
94-
9585
void drawGate(LogicElement le, String text){
9686
graphicsContext.setLineWidth(1);
9787
double scale = projection2D.getScale();

src/main/java/LogicCircuitSimulator/FxGUI/CircuitGrid/FXMLController/BoardDTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class BoardDTO {
2222
private final double MAX_ZOOM = 50;
2323
private final double MIN_ZOOM = 1;
2424

25-
private IntegerProperty TARGET_UPS = new SimpleIntegerProperty(25);
25+
private IntegerProperty TARGET_UPS = new SimpleIntegerProperty(2);
2626
private final AtomicInteger updatesSinceLastFrame = new AtomicInteger();
2727

2828
private final Canvas canvas;

src/main/java/LogicCircuitSimulator/Simulation/LogicElementHandler/LogicElementVisitor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ public interface LogicElementVisitor {
1414
void visit(ToggleOn toggleOn);
1515
void visit(ToggleOff toggleOff);
1616
void visit(ButtonLogicElement buttonLogicElement);
17-
void visit(OutputGate outputGate);
18-
void visit(InputGate inputGate);
1917
}

src/main/java/LogicCircuitSimulator/Simulation/LogicElementHandler/LogicElements/InputGate.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)