From d9b92bb1c4f03a819b4754a66b9f4e632a3b0e3c Mon Sep 17 00:00:00 2001 From: klmp200 Date: Fri, 12 May 2017 16:39:13 +0200 Subject: [PATCH] Implements fractals --- .gitignore | 23 ++++ sierpinski-fractales.iml | 27 +++++ .../sierpinski/FractalesFXApplication.fxml | 13 +++ .../sierpinski/FractalesFXApplication.sarl | 36 ++++++ .../sarl/demos/sierpinski/agents/Fractal.sarl | 110 ++++++++++++++++++ .../sarl/demos/sierpinski/events/events.sarl | 14 +++ .../sierpinski/gui/FXMLViewerController.sarl | 104 +++++++++++++++++ .../demos/sierpinski/objects/Positions.sarl | 21 ++++ .../sarl/demos/sierpinski/objects/Square.sarl | 63 ++++++++++ .../demos/sierpinski/objects/Triangle.sarl | 32 +++++ .../demos/sierpinski/objects/Vector2D.sarl | 38 ++++++ 11 files changed, 481 insertions(+) create mode 100644 .gitignore create mode 100644 sierpinski-fractales.iml create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/FractalesFXApplication.fxml create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/FractalesFXApplication.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/agents/Fractal.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/events/events.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/gui/FXMLViewerController.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/objects/Positions.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/objects/Square.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/objects/Triangle.sarl create mode 100644 src/main/sarl/io/sarl/demos/sierpinski/objects/Vector2D.sarl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05cd583 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ + +# Xtext generated files +src/main/generated-sources/ + +# NetBean / Eclipse +bin/ +**/*.java._trace +**/*.java_trace +**/*.smap +**/.project +**/.classpath +**/.settings +**/.metadata + +# Subversion and CVS +**/.svn/ +**/.cvs/ + +# Maven +target/ + +# Mac +.DS_Store diff --git a/sierpinski-fractales.iml b/sierpinski-fractales.iml new file mode 100644 index 0000000..ad8ae03 --- /dev/null +++ b/sierpinski-fractales.iml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/sarl/io/sarl/demos/sierpinski/FractalesFXApplication.fxml b/src/main/sarl/io/sarl/demos/sierpinski/FractalesFXApplication.fxml new file mode 100644 index 0000000..bf86b89 --- /dev/null +++ b/src/main/sarl/io/sarl/demos/sierpinski/FractalesFXApplication.fxml @@ -0,0 +1,13 @@ + + + + + + + + + +