Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from gadcam/master
Adds DrugNetwork typology
- Loading branch information
Showing
31 changed files
with
503 additions
and
122 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> | ||
|
||
|
||
<key id="count" for="node" attr.name="count" attr.type="int"/> | ||
<key id="monthlySpending" for="node" attr.name="monthlySpending" attr.type="double"/> | ||
<key id="thresholdForCashOut" for="node" attr.name="thresholdForCashOut" attr.type="double"/> | ||
|
||
<key id="action" for="edge" attr.name="action" attr.type="string"/> | ||
<key id="amount" for="edge" attr.name="amount" attr.type="double"/> | ||
<key id="probAmountProfile" for="edge" attr.name="probAmountProfile" attr.type="string"/> | ||
|
||
<graph id="DrugNetworkOne" edgedefault="directed"> | ||
<node id="DrugDealer"> | ||
<data key="thresholdForCashOut">1000</data> | ||
</node> | ||
<node id="DrugConsumers"> | ||
<data key="count">60</data> | ||
<data key="monthlySpending">100</data> | ||
</node> | ||
<node id="CashSink"/> | ||
<edge id="BuyDrugs" source="DrugConsumers" target="DrugDealer"> | ||
<data key="action">TRANSFER</data> | ||
<data key="probAmountProfile">10:0.25, 20:0.50, 50:0.20, 200:0.05</data> | ||
</edge> | ||
<edge id="CashOutProfit" source="DrugDealer" target="CashSink"> | ||
<data key="action">CASH_OUT</data> | ||
<data key="amount">1000</data> | ||
</edge> | ||
</graph> | ||
</graphml> |
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,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.paysim</groupId> | ||
<artifactId>paysim</artifactId> | ||
<version>2.0-SNAPSHOT</version> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>8</source> | ||
<target>8</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<repositories> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.eclab</groupId> | ||
<artifactId>mason</artifactId> | ||
<version>0663315</version> <!-- Commit corresponding to a Mavenized version of MASON v19 --> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.tinkerpop/tinkergraph-gremlin --> | ||
<dependency> | ||
<groupId>org.apache.tinkerpop</groupId> | ||
<artifactId>tinkergraph-gremlin</artifactId> | ||
<version>3.3.4</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<version>1.7.25</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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
2 changes: 1 addition & 1 deletion
2
src/paysim/actors/Bank.java → ...n/java/org/paysim/paysim/actors/Bank.java
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.