Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
On computing temporal functions for a time-dependent networks using trajectory data (IDEAS)#21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
e006ad04d3822c928b0c2beb8b0cd1d7038c3e35393cea3f243fd192a5272fd1f66fafda10bc55d83a612906f3e7c083826f2840f468a363760435f4cf936a02d7d366b464e88f54628d701d35a458dd424ec1949d44e92a134c344ac9fafd881d65a554c7f8f4a07d19989af3fb8eeb3241e5300fd97c8e3d433e3e64fd4cdb87edfca46868a79d8caaaecf867bc19fca678f70568cb218c57617c8691ec138418e2dcdbbed2d54041635b34ed1853979ce1cdc71ad3a630c3bce4f3d26695f9ca60561fb5d3f7c1314077b3b4f2ed12bed4754268c7b2edba48704c137615b7c2201ba42246872549b3ecb98dad3effc0bdbf4eed59a9225ecda12d736dca0d37048e0318a08694d97569b9f3e25991730caf61d226e52f037ac9a3e723a09bf2fa31da478f64919b240ff5226da704294e609c4c5538fbe8d5de1a1ebb51514db74dc51a874503ab19fff5532458c2f4346aa8d5e44a0d67978468c2272fc90bf148dd2ddfc960c7c0db6b31d87646f5b7aa35b0dcffb79cb082d7b3e88ffe204ea7f28311e0900286d5e064987f15269491521da6386ba740ec305d391ad8f15f99fb78a0a5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -17,3 +17,4 @@ null | ||
| *.aux | ||
| *.synctex* | ||
| bin | ||
| core/.RData | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # remoto - nuvem arida | ||
| driver=org.postgresql.Driver | ||
| host=jdbc:postgresql://177.130.199.157:8080/fortaleza | ||
| user=postgres | ||
| password=aridapostgres12 | ||
| #local | ||
| #driver=org.postgresql.Driver | ||
| #host=jdbc:postgresql://localhost:5432/fortaleza_novo | ||
| #user=postgres | ||
| #password=postgres | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -15,29 +15,29 @@ | ||
| <url>http://arida.github.io/maven-repo/</url> | ||
| </repository> | ||
| </repositories> | ||
| <licenses> | ||
| <license> | ||
| <name>GNU Lesser General Public License (LGPL), Version 2.1</name> | ||
| <url>http://www.fsf.org/licensing/licenses/lgpl.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <license> | ||
| <name>GNU Lesser General Public License (LGPL), Version 2.1</name> | ||
| <url>http://www.fsf.org/licensing/licenses/lgpl.txt</url> | ||
| <distribution>repo</distribution> | ||
| </license> | ||
| </licenses> | ||
| <scm> | ||
| <connection>scm:git:git://github.com/ARiDa/graphast.git</connection> | ||
| <url>https://github.com/ARiDa/graphast.git</url> | ||
| <developerConnection>https://github.com/ARiDa/graphast.git</developerConnection> | ||
| <connection>scm:git:git://github.com/ARiDa/graphast.git</connection> | ||
| <url>https://github.com/ARiDa/graphast.git</url> | ||
| <developerConnection>https://github.com/ARiDa/graphast.git</developerConnection> | ||
| </scm> | ||
| <developers> | ||
| <developer> | ||
| <id>graphast</id> | ||
| <name>Graphast</name> | ||
| </developer> | ||
| </developer> | ||
| </developers> | ||
| <properties> | ||
| <properties> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| </properties> | ||
| @@ -71,15 +71,57 @@ | ||
| <artifactId>osmpoispbf</artifactId> | ||
| <version>1.1</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.github.davidmoten</groupId> | ||
| <artifactId>rtree</artifactId> | ||
| <version>0.7.1</version> | ||
| </dependency> | ||
| </dependencies> | ||
| <dependency> | ||
| <groupId>com.github.jbytecode</groupId> | ||
| <artifactId>RCaller</artifactId> | ||
| <version>2.8</version> | ||
| </dependency> | ||
| <dependency> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dependencia RCaller aparece 2 vezes. CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. API necessária para executar comandos do R no Java. | ||
| <groupId>com.github.jbytecode</groupId> | ||
| <artifactId>RCaller</artifactId> | ||
| <version>2.8</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>postgresql</groupId> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. evitar a dependencia do postgres | ||
| <artifactId>postgresql</artifactId> | ||
| <version>9.1-901-1.jdbc4</version> | ||
| </dependency> | ||
| <dependency> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. evitar a dependencia do postgres | ||
| <groupId>org.postgis</groupId> | ||
| <artifactId>postgis-jdbc</artifactId> | ||
| <version>1.3.3</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.commons</groupId> | ||
| <artifactId>commons-lang3</artifactId> | ||
| <version>3.4</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.json</groupId> | ||
| <artifactId>json</artifactId> | ||
| <version>20160212</version> | ||
| </dependency> | ||
| <!-- http://mvnrepository.com/artifact/com.github.jbytecode/RCaller --> | ||
| <dependency> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Novamente o RCaller. | ||
| <groupId>com.github.jbytecode</groupId> | ||
| <artifactId>RCaller</artifactId> | ||
| <version>2.8</version> | ||
| </dependency> | ||
| </dependencies> | ||
| <build> | ||
| <plugins> | ||
| @@ -126,21 +168,28 @@ | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- | ||
| <plugin> | ||
| <artifactId>maven-gpg-plugin</artifactId> | ||
| <version>1.6</version> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>sign</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| --> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <version>2.4.2</version> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>shade</goal> | ||
| </goals> | ||
| <configuration> | ||
| <transformers> | ||
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | ||
| <mainClass>org.graphast.query.rnn.CompareRNNSearchsMethodsAnalysis</mainClass> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. qual a finalidade do shade? CollaboratorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isso foi necessário para executar a Classe Main através do Maven. Uma vez a classe de analise ficando no Core devemos utilizar essa configuração para executa-la. | ||
| </transformer> | ||
| </transformers> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,105 +1,116 @@ | ||
| package org.graphast.importer; | ||
| import java.util.Random; | ||
| import org.graphast.model.Graph; | ||
| public class CostGenerator { | ||
| public static int[] generateSyntheticEdgesCosts(int distance) { | ||
| Random random = new Random(); | ||
| int minSpeed, maxSpeed; | ||
| int[] syntheticCosts = new int[96]; | ||
| for(int i=0; i<24; i++) { | ||
| minSpeed = 14; | ||
| maxSpeed = 17; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=24; i<28; i++) { | ||
| minSpeed = 6; | ||
| maxSpeed = 9; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=28; i<36; i++) { | ||
| minSpeed = 1; | ||
| maxSpeed = 4; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=36; i<44; i++) { | ||
| minSpeed = 6; | ||
| maxSpeed = 9; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=44; i<56; i++) { | ||
| minSpeed = 1; | ||
| maxSpeed = 4; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=56; i<64; i++) { | ||
| minSpeed = 14; | ||
| maxSpeed = 17; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=64; i<68; i++) { | ||
| minSpeed = 6; | ||
| maxSpeed = 9; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=68; i<80; i++) { | ||
| minSpeed = 1; | ||
| maxSpeed = 4; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=80; i<88; i++) { | ||
| minSpeed = 6; | ||
| maxSpeed = 9; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| for(int i=88; i<96; i++) { | ||
| minSpeed = 14; | ||
| maxSpeed = 17; | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| return syntheticCosts; | ||
| } | ||
| public static void generateAllSyntheticEdgesCosts(Graph graph) { | ||
| for (int i = 0; i < graph.getNumberOfEdges(); i++) { | ||
| graph.setEdgeCosts(i, CostGenerator.generateSyntheticEdgesCosts(graph.getEdge(i).getDistance())); | ||
| } | ||
| } | ||
| package org.graphast.importer; | ||
| import java.util.Random; | ||
| import org.graphast.model.Graph; | ||
| public class CostGenerator { | ||
| public static int[] generateSyntheticEdgesCosts(int distance) { | ||
| Random random = new Random(); | ||
| int minSpeed, maxSpeed; //Millimeters Per Millisecond (mm/ms) | ||
| int[] syntheticCosts = new int[96]; | ||
| //1:00h to 6:00h | ||
| for(int i=0; i<24; i++) { | ||
| minSpeed = 14; // 50km/h | ||
| maxSpeed = 17; // 60km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //6:00h to 7:00h | ||
| for(int i=24; i<28; i++) { | ||
| minSpeed = 6; //21km/h | ||
| maxSpeed = 9; //32km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //7:00h to 9:00h | ||
| for(int i=28; i<36; i++) { | ||
| minSpeed = 1; //3km/h | ||
| maxSpeed = 4; //14km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //9:00h to 11:00h | ||
| for(int i=36; i<44; i++) { | ||
| minSpeed = 6; //21km/h | ||
| maxSpeed = 9; //32km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //11:00h to 14:00h | ||
| for(int i=44; i<56; i++) { | ||
| minSpeed = 1; //3km/h | ||
| maxSpeed = 4; //14km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //14:00h to 16:00h | ||
| for(int i=56; i<64; i++) { | ||
| minSpeed = 14; //50km/h | ||
| maxSpeed = 17; //60km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //16:00h to 17:00h | ||
| for(int i=64; i<68; i++) { | ||
| minSpeed = 6; //21km/h | ||
| maxSpeed = 9; //30/km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //17:00h to 20:00h | ||
| for(int i=68; i<80; i++) { | ||
| minSpeed = 1; //3km/h | ||
| maxSpeed = 4; //14km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //20:00h to 22:00h | ||
| for(int i=80; i<88; i++) { | ||
| minSpeed = 6; //21km/h | ||
| maxSpeed = 9; //30/km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| //22:00h to 00:00h | ||
| for(int i=88; i<96; i++) { | ||
| minSpeed = 14; //50km/h | ||
| maxSpeed = 17; //60km/h | ||
| syntheticCosts[i] = distance/(random.nextInt(maxSpeed-minSpeed)+minSpeed); | ||
| } | ||
| return syntheticCosts; | ||
| } | ||
| public static void generateAllSyntheticEdgesCosts(Graph graph) { | ||
| for (int i = 0; i < graph.getNumberOfEdges(); i++) { | ||
| graph.setEdgeCosts(i, CostGenerator.generateSyntheticEdgesCosts(graph.getEdge(i).getDistance())); | ||
| } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mirla, acho que este arquivo não deveria ser enviado por ter dados sensíveis e bem específicos do banco.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concordo. Arquivo removido.