Update of /cvsroot/magicmap/magicmapserver/dblayer/src/net/sf/magicmap/db
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11419/dblayer/src/net/sf/magicmap/db
Added Files:
GeoPosition.java
Log Message:
geopositiondata implemented
--- NEW FILE: GeoPosition.java ---
package net.sf.magicmap.db;
import java.util.Collection;
import java.util.HashSet;
/**
* @author lederer & weiß
* @jdo.persistence-capable
* identity-type="application"
* @jdo.class-vendor-extension
* vendor-name="jpox"
* key="table-name"
* value="position"
* @jdo.class-vendor-extension
* vendor-name="jpox" key="use-poid-generator"
* value="true"
* @jdo.class-vendor-extension
* vendor-name="jpox" key="poid-class-generator"
* value="org.jpox.poid.SequenceTablePoidGenerator"
*/
public class GeoPosition {
/**
*
*/
protected GeoPosition() {
super();
}
/**
* primary key
*
* @jdo.field
* persistence-modifier="persistent"
* primary-key="true"
*/
long id;
/**
* zugehörige Karte
*
* @jdo.field
* persistence-modifier="persistent"
* null-value="exception"
*/
Map map;
/**
* x Position im Bild
*
* @jdo.field
* persistence-modifier="persistent"
* null-value="exception"
*/
int posX;
/**
* y Position im Bild
*
* @jdo.field
* persistence-modifier="persistent"
* null-value="exception"
*/
int posY;
int latitude;
int longitude;
int altitude;
/**
* AccessPoints, die diese Hardware haben
*
* @jdo.field
* persistence-modifier="persistent"
*/
AccessPoint accessPoint;
/**
*
* @param map
* @param posX
* @param posY
*/
public GeoPosition(Map map, int posX, int posY) {
super();
this.map = map;
this.posX = posX;
this.posY = posY;
}
/**
* @return Returns the id.
*/
public long getId(){
return this.id;
}
/**
* @return Returns the map.
*/
public Map getMap(){
return this.map;
}
/**
* @return Returns the posX.
*/
public int getPosX(){
return this.posX;
}
/**
* @return Returns the posY.
*/
public int getPosY(){
return this.posY;
}
/**
* @param posX The posX to set.
*/
public void setPosX(int posX){
this.posX = posX;
}
/**
* @param posY The posY to set.
*/
public void setPosY(int posY){
this.posY = posY;
}
}
|