|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectru.igis.omtab.Util
public class Util
OpenMapTab utilities class
Constructor Summary | |
---|---|
Util()
Creates a new instance of Util |
Method Summary | |
---|---|
static void |
execScenario(java.lang.String scenario)
Method of execution of scenario |
static java.util.Collection |
filter(java.util.Collection col,
edu.stanford.smi.protege.model.Cls cls)
Filter instances of only one class |
static MapOb |
findOrAdd(edu.stanford.smi.protege.model.Instance inst,
RuNA runa)
Search for MapOb with a name like a label of Protege Instance or create one from it and add to RuNA |
static java.awt.Component |
getComponentOfClass(java.awt.Container container,
java.lang.String className)
|
static edu.stanford.smi.protege.widget.TabWidget |
getTab(java.lang.String fullClassName)
|
static double[] |
intersectionPoint(double lat1,
double lon1,
int course,
double[] llp,
boolean givePoint)
Intersection point with polygon along the course |
static void |
printRadArrayInDeg(double[] rad_array,
int how_many)
|
static double[] |
relPos(double lat,
double lon,
double azdeg,
double dist)
Point on some azimuth and distance from some point |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.util.Collection filter(java.util.Collection col, edu.stanford.smi.protege.model.Cls cls)
col
- - Collection of instancescls
- - Needed class
public static double[] intersectionPoint(double lat1, double lon1, int course, double[] llp, boolean givePoint)
lat1
- - Latitude of current point (degrees)lon1
- - Longitude of current point (degrees)course
- - Current course (degrees)llp
- - Array of lat lon points of polygon (radians)givePoint
- - Flag if gives up point or only check fact of intersection
public static void execScenario(java.lang.String scenario) throws java.lang.Exception
scenario
- - String in form "FULLCLASS METHOD PARAM1 PARAM2 ..."
java.lang.Exception
- -public static double[] relPos(double lat, double lon, double azdeg, double dist)
lat
- - latitude of initial pointlon
- - longitude of initial pointazdeg
- - azimuth of relative pointdist
- - distance of relative point from initial point
public static MapOb findOrAdd(edu.stanford.smi.protege.model.Instance inst, RuNA runa)
inst
- Protege Instanceruna
- RuNA object
public static edu.stanford.smi.protege.widget.TabWidget getTab(java.lang.String fullClassName)
public static java.awt.Component getComponentOfClass(java.awt.Container container, java.lang.String className)
public static void printRadArrayInDeg(double[] rad_array, int how_many)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |