|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.module.sensor.visibility.model.VisibilityMatrix
public class VisibilityMatrix
| Constructor Summary | |
|---|---|
protected |
VisibilityMatrix()
|
|
VisibilityMatrix(String mapName,
int size)
|
| Method Summary | |
|---|---|
Set<NavPoint> |
getCoverNavPoints(BitSet column)
Returns all NavPoint that are NOT visible according to 'column' (column[key] == FALSE, locations.get(key) included if NavPoint). |
Set<NavPoint> |
getCoverNavPoints(ILocated loc)
Returns set of NavPoint that are not visible from "loc". |
Set<NavPoint> |
getCoverNavPointsN(ILocated... locs)
Returns set of NavPoint that are not visible from any 'locs'. |
Set<VisibilityLocation> |
getCoverPoints(BitSet column)
Returns all VisibilityLocation that are NOT visible according to 'column' (column[key] == FALSE, locations.get(key) included). |
Set<VisibilityLocation> |
getCoverPoints(ILocated loc)
Returns set of VisibilityLocation that are not visible from "loc". |
Set<VisibilityLocation> |
getCoverPointsN(ILocated... locs)
Returns set of VisibilityLocation that are not visible from any 'locs'. |
static File |
getFile_All(File directory,
String mapName)
|
static String |
getFileName_All(String mapName)
|
VisibilityLocation |
getLocation(int index)
|
Map<Integer,VisibilityLocation> |
getLocations()
|
String |
getMapName()
|
BitMatrix |
getMatrix()
TRUE == visible FALSE == not-visible |
Set<NavPoint> |
getNavPoints(Collection<VisibilityLocation> visibilityLocations)
Returns nav points from 'visibilityLocations'. |
VisibilityLocation |
getNearest(ILocated located)
Nearest VisibilityLocation to 'located'. |
NavPoint |
getNearestCoverNavPoint(ILocated loc)
Returns nearest cover NavPoint to 'loc'. |
NavPoint |
getNearestCoverNavPoint(ILocated target,
ILocated loc)
Returns nearest cover NavPoint against 'from' for 'target'. |
NavPoint |
getNearestCoverNavPointN(ILocated target,
ILocated... coveredFrom)
Returns nearest cover nav point for 'target' that is covered from all 'coveredFrom'. |
VisibilityLocation |
getNearestCoverPoint(ILocated loc)
Returns nearest cover point to 'loc'. |
VisibilityLocation |
getNearestCoverPoint(ILocated target,
ILocated from)
Returns nearest cover point agains 'from' for 'target'. |
VisibilityLocation |
getNearestCoverPointN(ILocated target,
ILocated... coveredFrom)
Returns nearest cover point for 'target' that is covered from all 'coveredFrom'. |
Map.Entry<Integer,VisibilityLocation> |
getNearestEntry(ILocated located)
Nearest key- VisibilityLocation entry to 'located'. |
Integer |
getNearestIndex(ILocated located)
Nearest VisibilityLocation index to 'located'. |
Set<Integer> |
getNearestIndices(ILocated... locs)
Returns indices of nearest VisibilityLocation for 'locs'. |
NavPoint |
getNearestNavPoint(ILocated located)
Nearest VisibilityLocation to 'located'. |
int |
getPairCount()
Return total number of locations-pairs (not including X-X). |
Set<NavPoint> |
getVisibleNavPoints(BitSet column)
Returns all NavPoint that are visible according to 'column' (column[key] == TRUE, locations.get(key) included if NavPoint). |
Set<NavPoint> |
getVisibleNavPoints(ILocated loc)
Returns set of NavPoint that are visible from "loc". |
int |
getVisiblePairCount()
Return total number of visible pairs. |
Set<VisibilityLocation> |
getVisiblePoints(BitSet column)
Returns all VisibilityLocation that are visible according to 'column' (column[key] == TRUE, locations.get(key) included). |
Set<VisibilityLocation> |
getVisiblePoints(ILocated loc)
Returns set of VisibilityLocation that are visible from "loc". |
boolean |
isVisible(ILocated loc1,
ILocated loc2)
Returns whether loc1 is visible from loc2 (and vice versa == symmetrix info). |
static VisibilityMatrix |
load(File directory,
String mapName)
|
void |
save(File directory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected VisibilityMatrix()
public VisibilityMatrix(String mapName,
int size)
| Method Detail |
|---|
public String getMapName()
public Map<Integer,VisibilityLocation> getLocations()
public VisibilityLocation getLocation(int index)
public BitMatrix getMatrix()
public static String getFileName_All(String mapName)
public static File getFile_All(File directory,
String mapName)
public void save(File directory)
public static VisibilityMatrix load(File directory,
String mapName)
public int getPairCount()
public int getVisiblePairCount()
public Set<VisibilityLocation> getVisiblePoints(BitSet column)
VisibilityLocation that are visible according to 'column' (column[key] == TRUE, locations.get(key) included).
column -
public Set<NavPoint> getVisibleNavPoints(BitSet column)
NavPoint that are visible according to 'column' (column[key] == TRUE, locations.get(key) included if NavPoint).
column -
public Set<NavPoint> getNavPoints(Collection<VisibilityLocation> visibilityLocations)
visibilityLocations -
public Set<VisibilityLocation> getCoverPoints(BitSet column)
VisibilityLocation that are NOT visible according to 'column' (column[key] == FALSE, locations.get(key) included).
column -
public Set<NavPoint> getCoverNavPoints(BitSet column)
NavPoint that are NOT visible according to 'column' (column[key] == FALSE, locations.get(key) included if NavPoint).
column -
public Map.Entry<Integer,VisibilityLocation> getNearestEntry(ILocated located)
VisibilityLocation entry to 'located'.
public VisibilityLocation getNearest(ILocated located)
VisibilityLocation to 'located'.
located -
public NavPoint getNearestNavPoint(ILocated located)
VisibilityLocation to 'located'.
located -
public Integer getNearestIndex(ILocated located)
VisibilityLocation index to 'located'.
located -
public boolean isVisible(ILocated loc1,
ILocated loc2)
VisibilityLocation.
The information is accurate for navpoints and very accurate for points on links between navpoints.
If module is not Visibility.isInitialized(), returns false.
public Set<VisibilityLocation> getCoverPoints(ILocated loc)
VisibilityLocation that are not visible from "loc".
loc -
public VisibilityLocation getNearestCoverPoint(ILocated loc)
loc -
public VisibilityLocation getNearestCoverPoint(ILocated target,
ILocated from)
from -
public Set<VisibilityLocation> getVisiblePoints(ILocated loc)
VisibilityLocation that are visible from "loc".
loc -
public Set<NavPoint> getCoverNavPoints(ILocated loc)
NavPoint that are not visible from "loc".
loc -
public NavPoint getNearestCoverNavPoint(ILocated loc)
NavPoint to 'loc'.
loc -
public NavPoint getNearestCoverNavPoint(ILocated target,
ILocated loc)
NavPoint against 'from' for 'target'.
loc -
public Set<NavPoint> getVisibleNavPoints(ILocated loc)
NavPoint that are visible from "loc".
loc -
public Set<Integer> getNearestIndices(ILocated... locs)
VisibilityLocation for 'locs'.
locs -
public Set<VisibilityLocation> getCoverPointsN(ILocated... locs)
VisibilityLocation that are not visible from any 'locs'.
locs -
public VisibilityLocation getNearestCoverPointN(ILocated target,
ILocated... coveredFrom)
target - coveredFrom -
public Set<NavPoint> getCoverNavPointsN(ILocated... locs)
NavPoint that are not visible from any 'locs'.
locs -
public NavPoint getNearestCoverNavPointN(ILocated target,
ILocated... coveredFrom)
target - coveredFrom -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||