Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Mattias Persson
Here's the code directly in the mail, since filters makes it difficult to send attachments sometimes: package com.windh.eqn.util; import org.neo4j.api.core.*; public class RailNetApp { public enum MyRelationshipTypes implements RelationshipType { CONNECTION,

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Bert Fitié
On 30 jun 2009, at 11:47, Mattias Persson wrote: Yep, those errors are easily fixed. Your private methods needs to be static as well. I fixed those errors (see attachment). Yes, this fixed it! ~ $ cd /Users/bert/private/sandbox/neo neo $ bin/build/rail-net-app neo $ bin/rail-net-app Train

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Moandji Ezana
On Tue, Jun 30, 2009 at 1:25 PM, Bert Fitié b...@analytag.com wrote: Btw, what is the best way to get user input into Neo4j? The request for the outgoing paths from station Abc is now hard-coded; how could I enter the station on the command line? I don't know if there's already a project to

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Bert Fitié
On 30 jun 2009, at 13:25, Bert Fitié wrote: In the mean time I turn to the traverser and custom evaluator code. -- Bert Hi, Matthias The code below is running (after making the PathEvaluator class also static) but the output is not completely correct. Output: neo $

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Bert Fitié
On 30 jun 2009, at 14:35, Moandji Ezana wrote: On Tue, Jun 30, 2009 at 1:25 PM, Bert Fitié b...@analytag.com wrote: Btw, what is the best way to get user input into Neo4j? The request for the outgoing paths from station Abc is now hard-coded; how could I enter the station on the command

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Peter Neubauer
Google java console readln, for me it gave http://www.java2s.com/Code/Java/JDK-6/JavaConsolereadLine.htm /peter GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Bert Fitié
Thanks, exactly what I needed. ( I had done Google using java console but didn't immediately find something useful) On 30 jun 2009, at 15:18, Peter Neubauer wrote: Google java console readln, for me it gave http://www.java2s.com/Code/Java/JDK-6/JavaConsolereadLine.htm /peter GTalk:

Re: [Neo] Investigating railway network application using Neo4j

2009-06-30 Thread Moandji Ezana
Just about the simplest you can get: public class ConsoleTest { public static void main(String[] args) { while(true) { String input = System.console().readLine(); System.out.println(input); } } } Obviously, you'll have to kill the program manually.

Re: [Neo] More complex comparisons for IndexService

2009-06-30 Thread Anders Nawroth
Hi and welcome! I can't answer your questions, but regarding the formatting we use an Eclipse code formatter which you can download from this page: http://wiki.neo4j.org/content/Coding_Standard This page could be of some interest as well: http://wiki.neo4j.org/content/Code_Contributor%27s_Guide