Skip to content

Commit

Permalink
Created core package and Class Diagram changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
eltonnuness committed Oct 14, 2016
1 parent 6d05407 commit 309885f
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
Binary file modified models/Jasmine Class Diagram.asta
Binary file not shown.
20 changes: 20 additions & 0 deletions src/main/java/com/jasmine/core/JasmineBrain.java
Original file line number Diff line number Diff line change
@@ -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 - <elton_12_nunes@hotmail.com>
* @since 14/10/2016
*/
public class JasmineBrain {
private boolean thinking;
private boolean started;
List<JasmineNeuron> neurons;

public void start() {
//TODO Implement
}
}
44 changes: 44 additions & 0 deletions src/main/java/com/jasmine/core/JasmineMindsHandler.java
Original file line number Diff line number Diff line change
@@ -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 - <elton_12_nunes@hotmail.com>
* @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;
}

}
14 changes: 14 additions & 0 deletions src/main/java/com/jasmine/core/JasmineNeuron.java
Original file line number Diff line number Diff line change
@@ -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 - <elton_12_nunes@hotmail.com>
* @since 14/10/2016
*/
public interface JasmineNeuron {

public String process();

}
22 changes: 22 additions & 0 deletions src/main/java/com/jasmine/core/TwitterNeuron.java
Original file line number Diff line number Diff line change
@@ -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 - <elton_12_nunes@hotmail.com>
* @since 14/10/2016
*/
public class TwitterNeuron implements JasmineNeuron {

@Override
public String process() {
processCountWords();
return null;
}

private void processCountWords() {
// Implement
}

}
22 changes: 22 additions & 0 deletions src/main/java/com/jasmine/core/WeatherNeuron.java
Original file line number Diff line number Diff line change
@@ -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 - <elton_12_nunes@hotmail.com>
* @since 14/10/2016
*/
public class WeatherNeuron implements JasmineNeuron {

@Override
public String process() {
processTodayTemperature();
return null;
}

private void processTodayTemperature() {
// Implement
}

}

0 comments on commit 309885f

Please sign in to comment.