-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
139 changed files
with
1,910 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
reference_jdk: &reference_jdk | ||
'JDK="[email protected]"' | ||
'JDK="[email protected].0"' | ||
reference_os: &reference_os | ||
'linux' | ||
official_repo: &official_repo | ||
|
@@ -37,9 +37,10 @@ env: | |
- NO_WIN_DEFENDER=$(curl "${GRAVIS}.disable-windows-defender.sh" --output .no-defender.sh && source .no-defender.sh) | ||
matrix: | ||
- *reference_jdk | ||
- JDK="[email protected]" | ||
- JDK="[email protected]" | ||
- JDK="[email protected]" | ||
- JDK="[email protected]" | ||
- JDK="[email protected]" | ||
- JDK="[email protected]" | ||
# - JDK="[email protected]" | ||
matrix: | ||
exclude: | ||
- os: *reference_os | ||
|
@@ -57,19 +58,26 @@ jobs: | |
workspaces: | ||
create: | ||
name: linux-reference-build | ||
paths: | ||
- "${TRAVIS_BUILD_DIR}/alchemist/build" | ||
- stage: deploy | ||
name: "Reports and deployment" | ||
if: repo = env(OFFICIAL_REPO_SLUG) AND type != pull_request | ||
os: *reference_os | ||
env: | ||
- PUBLISH="true" | ||
- *reference_jdk | ||
workspaces: | ||
use: | ||
- linux-reference-build | ||
install: | ||
- openssl aes-256-cbc -K $encrypted_9993846e3f84_key -iv $encrypted_9993846e3f84_iv -in prepare_environment.sh.enc -out prepare_environment.sh -d | ||
- bash prepare_environment.sh | ||
script: | ||
- cd "$TRAVIS_BUILD_DIR"/alchemist | ||
- ./gradlew fatJar dokka buildDashboard projectReport orchidDeploy -x test --scan --parallel > >(egrep -v '(null:-1:-1)|(t find node by signature)') | ||
- ./gradlew dokka > >(egrep -v '(null:-1:-1)|(t find node by signature)') --scan | ||
- ./gradlew fatJar projectReport orchidDeploy -x test --scan --parallel | ||
- ./gradlew buildDashboard -x test | ||
- mkdir -p report | ||
- cp --parent */build/reports build/reports report -R | ||
after_success: | ||
|
@@ -83,9 +91,6 @@ script: | |
before_cache: | ||
- curl "${GRAVIS}.clean_gradle_cache.sh" --output .clean_gradle_cache.sh | ||
- bash .clean_gradle_cache.sh | ||
workspaces: | ||
use: | ||
- linux-reference-build | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 11 additions & 4 deletions
15
...hemist/model/cognitiveagents/characteristics/cognitive/AbstractCognitiveCharacteristic.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
.../alchemist/model/cognitiveagents/characteristics/cognitive/BodyCognitiveCharacteristic.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...tlin/it/unibo/alchemist/model/cognitiveagents/characteristics/cognitive/CognitiveAgent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package it.unibo.alchemist.model.cognitiveagents.characteristics.cognitive | ||
|
||
/** | ||
* An entity capable of having emotions and relations. | ||
*/ | ||
interface CognitiveAgent { | ||
|
||
/** | ||
* Value representing the current belief of the situation dangerousness for this pedestrian. | ||
*/ | ||
fun dangerBelief(): Double | ||
|
||
/** | ||
* Value representing the level of fear of this pedestrian. | ||
*/ | ||
fun fear(): Double | ||
|
||
/** | ||
* Whether or not this pedestrian intends to evacuate. | ||
*/ | ||
fun wantsToEvacuate(): Boolean | ||
|
||
/** | ||
* The list of all the cognitive characteristics of this pedestrian. | ||
*/ | ||
fun cognitiveCharacteristics(): List<CognitiveCharacteristic> | ||
|
||
/** | ||
* A list of all the pedestrians inside at least one of the sensory spheres of this pedestrian. | ||
*/ | ||
fun influencialPeople(): List<CognitiveAgent> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...tlin/it/unibo/alchemist/model/cognitiveagents/characteristics/cognitive/DesireEvacuate.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../it/unibo/alchemist/model/cognitiveagents/characteristics/cognitive/DesireWalkRandomly.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...lchemist/model/cognitiveagents/characteristics/cognitive/MentalCognitiveCharacteristic.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
.../kotlin/it/unibo/alchemist/model/cognitiveagents/characteristics/individual/Compliance.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.