Skip to content

Commit

Permalink
Adjusted Parse of LatoLonJS for Mid, PLink, Link. Now LatLonJsDataSou…
Browse files Browse the repository at this point in the history
…rce is OK!!!

Added also getNodeByIp method to DataSource class.
Added some Constructor to MapNode and Link.
AddNode form must be revisioned.
(Broken but not for too much time...!) :-D
  • Loading branch information
stefanopilla authored and stefanopilla committed Nov 17, 2009
1 parent e123fc7 commit 9f5ddb2
Show file tree
Hide file tree
Showing 10 changed files with 948 additions and 423 deletions.
2 changes: 2 additions & 0 deletions src/freimapgsoc/DataSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public String getCurrentID(){

public MapNode getNodeById(String id);

public MapNode getNodeByIp(String ip);

public Vector<Link> getLinks(long time);

/** @param dsl A DataSourceListener listening on events from this DataSource */
Expand Down
365 changes: 194 additions & 171 deletions src/freimapgsoc/LatLonJsDataSource.java

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/freimapgsoc/Layer.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void initLayout() {
public double id;
public Vector<MapNode> nodes = new Vector<MapNode>();
public Vector<Link> links = new Vector<Link>();
public DataSource currentDs;
public DataSource currentDs =null;
public HashMap<Vector<MapNode>, Vector<Link>> datasources;
public HashMap<Double, String> sources;
}
Expand Down
146 changes: 89 additions & 57 deletions src/freimapgsoc/LayerForm.form

Large diffs are not rendered by default.

200 changes: 142 additions & 58 deletions src/freimapgsoc/LayerForm.java

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/freimapgsoc/Link.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public Link(MapNode source, MapNode dest, float lq, float nlq, boolean HNA) {
this.nlq = nlq;
this.HNA = HNA;

}

public Link(MapNode source, MapNode dest){
this(source,dest,1,false);

}

public Link(MapNode source, MapNode dest, float lq, float nlq, float etx) {
Expand Down
8 changes: 8 additions & 0 deletions src/freimapgsoc/MapNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ public MapNode(String ip, String name, double uptime) {
this.uptime = uptime;
}

public MapNode(String ip, String name, double lat, double lon, Vector<String> ifaces){
this.name=name;
this.ip=ip;
this.lat=lat;
this.lon=lon;
this.inter=ifaces;
}


public MapNode(String ip, String name, double uptime, Connections conn) {
this.name = name;
Expand Down
319 changes: 257 additions & 62 deletions src/freimapgsoc/addNode.form

Large diffs are not rendered by default.

309 changes: 238 additions & 71 deletions src/freimapgsoc/addNode.java

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions src/freimapgsoc/resources/addNode.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ jLabel1.text=Latitude:
jLabel2.text=Longitude:
jLabel3.text=Ip Address:
jLabel4.text=Name:
jLabel5.text=Unlocated:
jLabel5.text=Interface 1:
Form.title=Add Node
latField.text=
lonField.text=
nameField.text=
ipField.text=
noRButton.text=No
yesRButton.text=Yes
backButton.text=Back
#NOI18N
backButton.icon=back.png
addIt.text=Add It!
#NOI18N
addIt.icon=add.png
jLabel6.text=Interface 3:
jLabel7.text=Interface 2:
jLabel8.text=Interface 4:
jLabel9.text=HNA:
jLabel10.text=Gateway:
jLabel11.text=connected to:
jLabel12.text=connected to:
jLabel13.text=connected to:
jLabel14.text=connected to:
#NOI18N
jLabel6.font=Lucida Grande-Plain-12

0 comments on commit 9f5ddb2

Please sign in to comment.