diff --git a/models/Jasmine Class Diagram.asta b/models/Jasmine Class Diagram.asta index de9874a..5d26a27 100644 Binary files a/models/Jasmine Class Diagram.asta and b/models/Jasmine Class Diagram.asta differ diff --git a/src/main/java/com/jasmine/core/JasmineBrain.java b/src/main/java/com/jasmine/core/JasmineBrain.java new file mode 100644 index 0000000..e846cc7 --- /dev/null +++ b/src/main/java/com/jasmine/core/JasmineBrain.java @@ -0,0 +1,20 @@ +package com.jasmine.core; + +import java.util.List; + +/** + * Classe principal do pacote, ele ira dar inicio a todas as tarefas que serão + * executadas e processadas. + * + * @author Élton Nunes - + * @since 14/10/2016 + */ +public class JasmineBrain { + private boolean thinking; + private boolean started; + List neurons; + + public void start() { + //TODO Implement + } +} diff --git a/src/main/java/com/jasmine/core/JasmineMindsHandler.java b/src/main/java/com/jasmine/core/JasmineMindsHandler.java new file mode 100644 index 0000000..95cc339 --- /dev/null +++ b/src/main/java/com/jasmine/core/JasmineMindsHandler.java @@ -0,0 +1,44 @@ +package com.jasmine.core; + +import javafx.scene.control.TextArea; + +/** + * Classe responsavel por gerenciar a manipulação da area de texto que é exibida + * na tela principal + * + * @author Élton Nunes - + * @since 14/10/2016 + */ +public class JasmineMindsHandler { + + public TextArea txtAreaJasmineMinds; + + String getText() { + //TODO Implement + return null; + } + + String appendText(String text) { + //TODO Implement + return null; + } + + JasmineMindsHandler appendTextBreakLine(String text) { + //TODO Implement + return this; + } + + String setText(String text) { + //TODO Implement + return null; + } + + void clearText() { + //TODO Implement + } + + public void setTextArea(TextArea textArea) { + this.txtAreaJasmineMinds = textArea; + } + +} diff --git a/src/main/java/com/jasmine/core/JasmineNeuron.java b/src/main/java/com/jasmine/core/JasmineNeuron.java new file mode 100644 index 0000000..4fece4b --- /dev/null +++ b/src/main/java/com/jasmine/core/JasmineNeuron.java @@ -0,0 +1,14 @@ +package com.jasmine.core; + +/** + * Interface responsavel por definir o metodo de processamento que será + * realizado pelas classes que à implementem + * + * @author Élton Nunes - + * @since 14/10/2016 + */ +public interface JasmineNeuron { + + public String process(); + +} diff --git a/src/main/java/com/jasmine/core/TwitterNeuron.java b/src/main/java/com/jasmine/core/TwitterNeuron.java new file mode 100644 index 0000000..d57f60f --- /dev/null +++ b/src/main/java/com/jasmine/core/TwitterNeuron.java @@ -0,0 +1,22 @@ +package com.jasmine.core; + +/** + * Implementação do neuronio criado para processamento das informações que serão + * exibidas para o usuário + * + * @author Élton Nunes - + * @since 14/10/2016 + */ +public class TwitterNeuron implements JasmineNeuron { + + @Override + public String process() { + processCountWords(); + return null; + } + + private void processCountWords() { + // Implement + } + +} diff --git a/src/main/java/com/jasmine/core/WeatherNeuron.java b/src/main/java/com/jasmine/core/WeatherNeuron.java new file mode 100644 index 0000000..8a4c42b --- /dev/null +++ b/src/main/java/com/jasmine/core/WeatherNeuron.java @@ -0,0 +1,22 @@ +package com.jasmine.core; + +/** + * Implementação do neuronio criado para processamento das informações que serão + * exibidas para o usuário + * + * @author Élton Nunes - + * @since 14/10/2016 + */ +public class WeatherNeuron implements JasmineNeuron { + + @Override + public String process() { + processTodayTemperature(); + return null; + } + + private void processTodayTemperature() { + // Implement + } + +}