Skip to content

Commit

Permalink
separando os agentes em containeres
Browse files Browse the repository at this point in the history
  • Loading branch information
AdsonEsteves committed Nov 16, 2020
1 parent fc5f372 commit 6007388
Show file tree
Hide file tree
Showing 9 changed files with 446 additions and 178 deletions.
152 changes: 152 additions & 0 deletions ServerAgentsServices.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<services>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP Interface Agent -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<service>
<name>getAnswer</name>
<description>retorna informações do aluno usuário</description>
<entity>InterfaceAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

<service>
<name>getInterface</name>
<description>retorna informações do aluno usuário</description>
<entity>InterfaceAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

<service>
<name>createAccount</name>
<description>cria nova conta de usuário</description>
<entity>InterfaceAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP Recommender Agent -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<service>
<name>getRecommendedContent</name>
<description>recomenda um exercicio ao remetente</description>
<entity>RecommenderAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP Grouper Agent -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<service>
<name>groupStudents</name>
<description>Agrupa os alunos em grupos</description>
<entity>GrouperAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
<service>
<name>groupStudents</name>
<description>Agrupa os alunos em grupos</description>
<entity>GrouperAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP DBConnection Component -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<service>
<name>createStudent</name>
<description>registra um novo estudante no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>findStudents</name>
<description>busca estudantes no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>editStudent</name>
<description>edita um estudante no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>getLogsDoAluno</name>
<description>retorna os conteudos usados do aluno</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>deleteStudent</name>
<description>remove um estudante do banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>storeStudentUseData</name>
<description>guard os dados de uso do usuario no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>editStudentListAttr</name>
<description>guard os dados de uso do usuario no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>storeStudentContentUse</name>
<description>guard os dados de uso do usuario no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>createContent</name>
<description>registra um novo conteudo no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>findContents</name>
<description>busca conteudos no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>editContent</name>
<description>edita um conteudo no banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>deleteContent</name>
<description>remove um conteudo do banco de dados</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>


</services>
45 changes: 45 additions & 0 deletions ServerAgentsStructure.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<agentserver>
<name>SACIP</name>

<localPort>$localport</localPort>

<serverPort>$serverport</serverPort>
<serverAddress>$serverAddress</serverAddress>
<!--<serverAddress>35.192.97.232</serverAddress>-->

<organizations>
<organization>
<name>SACIP</name>
<package>sacip.sti</package>

<agents>
<agent>
<name>InterfaceAgent</name>
<package>agents</package>
<className>InterfaceAgent</className>
<protocol>native</protocol>
</agent>
<agent>
<name>RecommenderAgent</name>
<package>agents</package>
<className>RecommenderAgent</className>
<protocol>native</protocol>
</agent>
<agent>
<name>GrouperAgent</name>
<package>agents</package>
<className>GrouperAgent</className>
<protocol>native</protocol>
</agent>
</agents>
<components>
<component>
<name>DBConnection</name>
<package>components</package>
<className>DBConnection</className>
<protocol>native</protocol>
</component>
</components>
</organization>
</organizations>
</agentserver>
61 changes: 61 additions & 0 deletions UserAgentsServices.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<services>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP Pedagogical Agent -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<!-- <service>
<name>getAluno</name>
<description>retorna o estudante em uma classe Student</description>
<entity>PedagogicalAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
<parameters>
<parameter>
<name>codigo</name><class>java.lang.String</class>
</parameter>
</parameters>
</service> -->

<service>
<name>getAluno</name>
<description>retorna o estudante em uma classe Student</description>
<entity>PedagogicalAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP Tracking Agent -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<service>
<name>storeData</name>
<description>Armazena os dados do usuário</description>
<entity>TrackingAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
<service>
<name>storeSolvedExercise</name>
<description>Armazena os exercícios resolvidos do usuário</description>
<entity>TrackingAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
<service>
<name>storeContentOnPath</name>
<description>Armazena os conteúdos na trilha usuário</description>
<entity>TrackingAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
<service>
<name>storeStudentErrors</name>
<description>Armazena os erros do usuário</description>
<entity>TrackingAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>

</services>
31 changes: 31 additions & 0 deletions UserAgentsStructure.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<agentserver>
<name>SACIP</name>

<localPort>$localport</localPort>

<serverPort>$serverport</serverPort>
<serverAddress>$serverAddress</serverAddress>
<!--<serverAddress>35.192.97.232</serverAddress>-->

<organizations>
<organization>
<name>SACIP</name>
<package>sacip.sti</package>

<agents>
<agent>
<name>PedagogicalAgent</name>
<package>agents</package>
<className>PedagogicalAgent</className>
<protocol>native</protocol>
</agent>
<agent>
<name>TrackingAgent</name>
<package>agents</package>
<className>TrackingAgent</className>
<protocol>native</protocol>
</agent>
</agents>
</organization>
</organizations>
</agentserver>
36 changes: 15 additions & 21 deletions services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<!-- SACIP Pedagogical Agent -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<service>
<name>identifyErrors</name>
<description>verifica erros no código</description>
<!-- <service>
<name>getAluno</name>
<description>retorna o estudante em uma classe Student</description>
<entity>PedagogicalAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
Expand All @@ -15,28 +15,15 @@
<name>codigo</name><class>java.lang.String</class>
</parameter>
</parameters>
</service>
<service>
<name>suggestContent</name>
<description>sugere uma trilha de aprendizado</description>
<entity>PedagogicalAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
<service>
<name>suggestResolutionTips</name>
<description>sugere uma exercício</description>
<entity>PedagogicalAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
</service> -->

<service>
<name>suggestContent</name>
<description>sugere um conteudo</description>
<name>getAluno</name>
<description>retorna o estudante em uma classe Student</description>
<entity>PedagogicalAgent</entity>
<scope>mas</scope>
<organization>SACIP</organization>
</service>
</service>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- SACIP Interface Agent -->
Expand Down Expand Up @@ -155,6 +142,13 @@
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>getLogsDoAluno</name>
<description>retorna os conteudos usados do aluno</description>
<entity>DBConnection</entity>
<scope>components</scope>
<organization>SACIP</organization>
</service>
<service>
<name>deleteStudent</name>
<description>remove um estudante do banco de dados</description>
Expand Down
Loading

0 comments on commit 6007388

Please sign in to comment.