|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ohf.stem.ui.ge.GEData
public class GEData
Store info about a geographic location and SEIR status in STEM. It would represent an area such as a US county and contains an id and the border expressed as one or more list of points. The points are Longitude and latitude. Note that (perhaps for an island group) there may be more than 1 list of points. It also contains the values for various aspects relative to Population For SEIR diceases, these aspects would be Susceptible,Exposed, Infectious, and Recovered There may be more or less aspects. These are stored in a Map keyed by aspect code.
Constructor Summary | |
---|---|
GEData(java.lang.String name,
LatLong areas)
Create an instance of GEData with LatLong |
Method Summary | |
---|---|
java.awt.Rectangle |
getBBox()
|
java.lang.String |
getCoordinatesAsString(int numArea)
format needed by KML long,lat long,lat ... |
java.lang.String |
getId()
|
java.lang.String |
getName()
|
int |
getNumAreas()
get the number of areas described by the geographic points. |
double |
getValue(Aspect aspect)
|
java.util.Map<java.lang.String,java.lang.Double> |
getValueMap()
|
java.lang.String |
getValuesAsString()
Get the aspect values as a String |
void |
setId(java.lang.String id)
|
void |
setName(java.lang.String name)
|
void |
setValue(Aspect aspect,
double value)
Store the value in the data store for the area. |
java.lang.String |
toString()
debug helper |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GEData(java.lang.String name, LatLong areas)
name
- areas
- Method Detail |
---|
public java.lang.String getCoordinatesAsString(int numArea)
numArea
- Normally 0 if just 1 contig area
but it could be a set of islands or
other multible areas.
public java.lang.String getValuesAsString()
public int getNumAreas()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getId()
public void setId(java.lang.String id)
id
- the id to setpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Double> getValueMap()
public double getValue(Aspect aspect)
aspect
-
public void setValue(Aspect aspect, double value)
aspect
- The aspect that this value is for.value
- the value for the specified aspectpublic java.awt.Rectangle getBBox()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |