|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uio.edd.model.geo.map.GeoRelationship
public class GeoRelationship
Constructor Summary | |
---|---|
GeoRelationship(java.lang.String id,
GeoPlace source,
GeoPlace target)
Create a new relationship between two places. |
Method Summary | |
---|---|
java.lang.String |
addUrl(java.lang.String newUrl)
|
double |
getDirection()
|
double |
getDistance()
|
GeoPlace |
getDomain()
|
java.lang.String |
getId()
|
double |
getPartOfDirection()
|
GeoPlace |
getRange()
|
boolean |
interpretDirAndDist()
|
boolean |
isBetween()
|
boolean |
isPartOf()
That is, domain is part of range. |
void |
setBetween(boolean isBetween)
|
void |
setDirection(double direction)
|
void |
setDistance(double distance)
|
void |
setPartOf(boolean isPartOf)
That is, domain is part of range. |
void |
setPartOfDirection(double partOfDirection)
|
static GeoRelationship[] |
toGeoRelArr(ExtendableObjectList objList)
Convert an ExtendableObjectList containing GeoRelationship objects to a GeoRelationship array, removing null elements. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeoRelationship(java.lang.String id, GeoPlace source, GeoPlace target)
id
- The ID to set.source
- Source place.target
- Target place.Method Detail |
---|
public double getDirection()
public void setDirection(double direction)
direction
- the direction to setpublic double getDistance()
public void setDistance(double distance)
distance
- the distance to setpublic boolean isPartOf()
public void setPartOf(boolean isPartOf)
isPartOf
- the isPartOf to setpublic boolean isBetween()
public void setBetween(boolean isBetween)
isBetween
- the isBetween to setpublic java.lang.String getId()
public GeoPlace getDomain()
public GeoPlace getRange()
public java.lang.String addUrl(java.lang.String newUrl)
public java.lang.String toString()
toString
in class java.lang.Object
public static GeoRelationship[] toGeoRelArr(ExtendableObjectList objList)
objList
- The object list.
public boolean interpretDirAndDist()
public double getPartOfDirection()
public void setPartOfDirection(double partOfDirection)
partOfDirection
- the partOfDirection to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |