DurchflusstabelleFactory - GroovyClassLoader-Demo





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

7
Date Submitted Thu. Mar. 22nd, 2007 4:30 PM
Revision 1
Helper glaforge
Tags google | groovy
Comments 1 comments
Using the SwingX JXMapViewer and using a special tile factory to retrieve Google Maps tiles, from a Groovy SwingBuilder.
-5
Date Submitted Wed. May. 31st, 2006 3:19 AM
Revision 2
Beginner fazen
Tags Image | Java | servlet | Stream
Comments 1 comments
Servlet returning an image.
9
Date Submitted Wed. Oct. 25th, 2006 9:57 AM
Revision 1
Helper fastmike
Tags C | File | Java | String
Comments 12 comments
What is Dijkstra Algorithm? click on the link above and first understand what the algorithm is all about. in short it calculates the shortest path from A to F or vise versa. This code i can guarantee is the simplest and easiest code to understand. just search on google and try to compare this code and other dijkstra code and you will see what i am talking about. i spent alot of time myself and my instructor to guide me on the rite path.
http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm(Description)
to see how the algorithm really works go on this website it tells you step by step how to update the cost and which path to choose.
http://renaud.waldura.com/doc/java/dijkstra/
Please give some time to understand the algorithm first and then you can see my code. if you done understand the algorithm it is very useless. i know alot of people need Dijkstra algorithm in java for their HW assignment or Test. i am giving you the solution step by step. anyone who wants to understand please go to the url i have posted above and once you have understand then run the code and for those people who just want to copy so that they can get 90% in their test No Problem Here it is .
First open a notepad and name that file anything like data.txt or datas.txt and make sure the file looks something like this and in this format.
0 3 100 5 100 100 (100 represents infinity)
3 0 6 7 7 100
100 6 0 5 5 3
5 7 5 0 1 100
100 7 5 1 0 2
100 100 3 100 2 0
i name this file as a data.txt file. i have 6 nodes. and A is always the starting node which has the cost of 0 so by looking at the first line i
know that A to A have distance 0, A to B is 3, A to c is Infinity, A to D is 5, A to E is Infinity(means no edge connected with A), A to F is Infinity.
for second line(B to A is 3, and then vise versa) and for the 3rd line it starts for C and etc..
save the txt file by any name and then copy the code which i have posted and then to run type this:
javac routing.java
java routing data.txt
you will get the output. i will say this one more time understand how the algorithm works or ......................
4
Date Submitted Tue. Nov. 7th, 2006 10:28 AM
Revision 1
Helper fastmike
Tags Java | String | System.IO
Comments 0 comments
To create a chatprogram in java we need 2 classes one for Client and one for Server from which the client will be able to connect and exchange text messages. to compile the code simply type these commands in command prompt window:-
1)ipconfig(memorize the Ip address)
2)javac client.java
3)javac server.java
4)java server 10.69.23.203 (You need to type your own ip address)
5) After this you need to open another command prompt window(Make sure the server command prompt window is also open). now type:
java client 10.69.23.203
Thats it.
if anyone have any problems please post a comment and i will answer all of your questions or if you are having trouble in compiling.
2
Date Submitted Thu. Apr. 12th, 2007 1:42 PM
Revision 1
Helper esumerfd
Tags dsl | FSM | groovy | Machines | State
Comments 1 comments
Try to create a DSL for a finite state machine.

Inspired by Chris vanBuskirk version on this site and the Ruby article at

http://www-128.ibm.com/developerworks/java/library/j-cb03137/index.html
2
Date Submitted Sun. Apr. 29th, 2007 9:58 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
A possible implementation of the Sieve of Eratosthenes for generating prime numbers below some limit.
5
Date Submitted Sun. Apr. 29th, 2007 10:02 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
Generate prime numbers blow some limit using the Sieve of Eratosthenes algorithm. This snippet uses some object abstractions to simplify the algorithm.
5
Date Submitted Sun. Apr. 29th, 2007 10:04 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
Generate prime numbers below some limit. This snippet uses groovy categories to locate the appropriate methods in common classes.
2
Date Submitted Sun. Apr. 29th, 2007 10:07 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
Generate prime numbers below some limit. This snippet incorporates some DSL like keywords to describe the prime algorithm.
2
Date Submitted Sun. Apr. 29th, 2007 10:14 PM
Revision 1
Helper esumerfd
Tags "Sieve | Eratosthenes" | groovy | of | primes
Comments 0 comments
The tests for the Sieve of Eratosthenes snippets.