Skip to content

Commit a64370e

Browse files
committed
update
test plan eseguibile per storerequest
1 parent fc1cda3 commit a64370e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+819
-632
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="src"/>
4-
<classpathentry kind="src" path="resources"/>
5-
<classpathentry kind="output" path="bin"/>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
4+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
5+
<classpathentry kind="output" path="bin/default"/>
66
</classpath>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#Fri Aug 26 19:45:08 CEST 2022
1+
#Tue Sep 06 00:12:19 CEST 2022
22
gradle.version=7.4.2
Binary file not shown.
Binary file not shown.

Sprint0/Sprint0_RequirementAnalysis/.idea/.gitignore

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

Sprint0/Sprint0_RequirementAnalysis/.idea/.name

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

Sprint0/Sprint0_RequirementAnalysis/.idea/compiler.xml

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

Sprint0/Sprint0_RequirementAnalysis/.idea/gradle.xml

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

Sprint0/Sprint0_RequirementAnalysis/.idea/jarRepositories.xml

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

Sprint0/Sprint0_RequirementAnalysis/.idea/misc.xml

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

Sprint0/Sprint0_RequirementAnalysis/.idea/modules/unibo.demo.test.iml

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

Sprint0/Sprint0_RequirementAnalysis/.idea/modules/unibo.test_storerequest.test.iml

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

Sprint0/Sprint0_RequirementAnalysis/.idea/vcs.xml

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

Sprint0/Sprint0_RequirementAnalysis/.ipynb_checkpoints/Arch_demo_system_overview-checkpoint.ipynb

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

Sprint0/Sprint0_RequirementAnalysis/.ipynb_checkpoints/Arch_demo_system_overview_v0-checkpoint.ipynb

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

Sprint0/Sprint0_RequirementAnalysis/.ipynb_checkpoints/Arch_demo_system_overview_v1-checkpoint.ipynb

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

Sprint0/Sprint0_RequirementAnalysis/.project

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>Sprint0_RequirementAnalysis</name>
4-
<comment>Project Sprint0_RequirementAnalysis created by Buildship.</comment>
3+
<name>unibo.test_storerequest</name>
4+
<comment>Project Sprint0_RequirementAnalysis_ created by Buildship.</comment>
55
<projects>
66
</projects>
77
<buildSpec>
88
<buildCommand>
9-
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
1313
<buildCommand>
14-
<name>org.eclipse.jdt.core.javabuilder</name>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
1515
<arguments>
1616
</arguments>
1717
</buildCommand>
1818
<buildCommand>
19-
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
19+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
2020
<arguments>
2121
</arguments>
2222
</buildCommand>

Sprint0/Sprint0_RequirementAnalysis/Arch_demo_system_overview_v0.ipynb

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

Sprint0/Sprint0_RequirementAnalysis/Arch_demo_system_overview_v0.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
with Cluster('ctx_basicrobot', graph_attr=nodeattr):
3333
basicrobot=Custom('basicrobot(ext)','./qakicons/externalQActor.png')
3434
smartdevice_test >> Edge(color='magenta', style='solid', xlabel='storerequest') >> wasteservice
35+
wasteservice >> Edge(color='green', style='dashed', xlabel='loadaccepted') >> sys
3536
wasteservice >> Edge(color='blue', style='solid', xlabel='doDeposit') >> transporttrolley
37+
wasteservice >> Edge(color='green', style='dashed', xlabel='loadrejected') >> sys
3638
wasteservice >> Edge(color='blue', style='solid', xlabel='updategui') >> wasteservicestatusgui
3739
wasteservice >> Edge(color='blue', style='solid', xlabel='stop') >> transporttrolley
3840
wasteservice >> Edge(color='blue', style='solid', xlabel='resume') >> transporttrolley
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from diagrams import Cluster, Diagram, Edge
2+
from diagrams.custom import Custom
3+
import os
4+
os.environ['PATH'] += os.pathsep + 'C:/Program Files/Graphviz/bin/'
5+
6+
graphattr = { #https://www.graphviz.org/doc/info/attrs.html
7+
'fontsize': '22',
8+
}
9+
10+
nodeattr = {
11+
'fontsize': '22',
12+
'bgcolor': 'lightyellow'
13+
}
14+
15+
eventedgeattr = {
16+
'color': 'red',
17+
'style': 'dotted'
18+
}
19+
with Diagram('test_storerequestArch', show=False, outformat='png', graph_attr=graphattr) as diag:
20+
with Cluster('env'):
21+
sys = Custom('','./qakicons/system.png')
22+
with Cluster('ctx_test_storerequest', graph_attr=nodeattr):
23+
test_wasteservice=Custom('test_wasteservice','./qakicons/symActorSmall.png')
24+
test_wasteservice >> Edge(color='green', style='dashed', xlabel='loadaccepted') >> sys
25+
test_wasteservice >> Edge(color='green', style='dashed', xlabel='loadrejected') >> sys
26+
diag
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Californium3 CoAP Properties file
2+
# Tue Sep 06 00:16:54 CEST 2022
3+
#
Lines changed: 119 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,120 @@
11
/*
2-
* This file was generated by the Gradle 'init' task.
3-
*
4-
* This is a general purpose Gradle build.
5-
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.4.2/samples
6-
*/
2+
================================================================================
3+
build.gradle
4+
GENERATED ONLY ONCE
5+
================================================================================
6+
*/
7+
plugins {
8+
// Apply the application plugin to add support for building a CLI application in Java.
9+
id 'application'
10+
id 'java'
11+
id 'eclipse'
12+
13+
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
14+
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
15+
16+
id 'com.adarshr.test-logger' version '3.2.0'
17+
}
18+
19+
version '1.0'
20+
sourceCompatibility = 11
21+
22+
repositories {
23+
// Use Maven Central for resolving dependencies.
24+
mavenCentral()
25+
flatDir { dirs '../unibolibs' }
26+
}
27+
28+
dependencies {
29+
// Align versions of all Kotlin components
30+
implementation platform('org.jetbrains.kotlin:kotlin-bom')
31+
32+
// Use the Kotlin JDK 8 standard library.
33+
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
34+
35+
// This dependency is used by the application.
36+
implementation 'com.google.guava:guava:30.1.1-jre'
37+
implementation 'org.junit.jupiter:junit-jupiter:5.8.1'
38+
39+
// Use the Kotlin test library.
40+
testImplementation 'org.jetbrains.kotlin:kotlin-test'
41+
42+
// Use the Kotlin JUnit integration.
43+
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
44+
45+
/* COROUTINES ********************************************************************************************************** */
46+
// https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core
47+
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: "$kotlinVersion", ext: 'pom'
48+
// https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm
49+
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core-jvm', version: "$kotlinVersion"
50+
51+
/* MQTT *************************************************************************************************************** */
52+
// https://mvnrepository.com/artifact/org.eclipse.paho/org.eclipse.paho.client.mqttv3
53+
implementation group: 'org.eclipse.paho', name: 'org.eclipse.paho.client.mqttv3', version: '1.2.5'
54+
55+
/* JSON **************************************************************************************************************** */
56+
// https://mvnrepository.com/artifact/org.json/json
57+
implementation group: 'org.json', name: 'json', version: '20220320'
58+
59+
/* COAP **************************************************************************************************************** */
60+
// https://mvnrepository.com/artifact/org.eclipse.californium/californium-core
61+
implementation group: 'org.eclipse.californium', name: 'californium-core', version: '3.5.0'
62+
// https://mvnrepository.com/artifact/org.eclipse.californium/californium-proxy2
63+
implementation group: 'org.eclipse.californium', name: 'californium-proxy2', version: '3.5.0'
64+
65+
//OkHttp library for websockets with Kotlin
66+
//implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.0'
67+
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.9.3'
68+
// https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver
69+
testImplementation group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '4.9.3'
70+
71+
/* LOG4J *************************************************************************************************************** */
72+
// https://mvnrepository.com/artifact/org.slf4j/slf4j-reload4j
73+
implementation group: 'org.slf4j', name: 'slf4j-reload4j', version: '2.0.0-alpha7'
74+
75+
/* HTTP **************************************************************************************************************** */
76+
// https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
77+
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
78+
// https://mvnrepository.com/artifact/commons-io/commons-io
79+
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
80+
81+
/* UNIBO *************************************************************************************************************** */
82+
implementation name: 'uniboInterfaces'
83+
implementation name: '2p301'
84+
implementation name: 'unibo.qakactor22-3.2'
85+
implementation name: 'unibo.comm22-1.1'
86+
87+
/* AIMA **************************************************************************************************************** */
88+
//PLANNER
89+
implementation name: 'unibo.planner22-1.0'
90+
// https://mvnrepository.com/artifact/com.googlecode.aima-java/aima-core
91+
implementation group: 'com.googlecode.aima-java', name: 'aima-core', version: '3.0.0'
92+
93+
}
94+
95+
sourceSets {
96+
main.java.srcDirs += 'src'
97+
main.java.srcDirs += 'resources'
98+
test.java.srcDirs += 'test' //test is specific
99+
}
100+
101+
102+
eclipse {
103+
classpath {
104+
sourceSets -= [sourceSets.main, sourceSets.test]
105+
}
106+
}
107+
108+
109+
application {
110+
// Define the main class for the application.
111+
mainClass = 'it.unibo.ctx_basicrobot.MainCtx_basicrobotKt'
112+
}
113+
114+
jar {
115+
println("building jar")
116+
from sourceSets.main.allSource
117+
manifest {
118+
attributes 'Main-Class': "$mainClassName"
119+
}
120+
}

Sprint0/Sprint0_RequirementAnalysis/build2022.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dependencies {
7878
/* UNIBO *************************************************************************************************************** */
7979
implementation name: 'uniboInterfaces'
8080
implementation name: '2p301'
81-
implementation name: 'unibo.qakactor22-3.1'
81+
implementation name: 'unibo.qakactor22-3.2'
8282
implementation name: 'unibo.comm22-1.1'
8383

8484
/* AIMA **************************************************************************************************************** */
@@ -105,7 +105,7 @@ eclipse {
105105

106106
application {
107107
// Define the main class for the application.
108-
mainClass = 'it.unibo.ctx_basicrobot.MainCtx_basicrobotKt'
108+
mainClass = 'it.unibo.ctx_test_storerequest.MainCtx_test_storerequestKt'
109109
}
110110

111111
jar {

Sprint0/Sprint0_RequirementAnalysis/resources/wasteservice/Constants.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ package wasteservice
22

33
object Constants {
44
const val DLIMT:Float = 100.0f
5+
const val MAXPB:Float = 50.0f
6+
const val MAXGB:Float = 50.0f
57
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package wasteservice
22

3-
enum class LedState {
3+
enum class LedStatus {
44
OFF, ON, BLINKING
55
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package wasteservice
2+
3+
object func {
4+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = "unibo.demo_system_overview_v0"
1+
rootProject.name = "unibo.test_storerequest"

0 commit comments

Comments
 (0)