Package ca.spatial.table
Class Topology
java.lang.Object
ca.spatial.table.Topology
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
copy(double distance)
Copy the topology structureGet the filename that was used to create this topology object.getLabel()
Get the column name from the attribuet store that contains the unique row label.double
Get the maximum inter-neighbour distance used in this network.getNode(int index)
Get the Node corresponding to the block index.getNodeByLabel(Object label)
Get the Node corresponding to the block labelNode[]
getNodes()
Get the entire array of Nodesint
getRowForNode(int index)
int
getSize()
Get the number of Nodes in the tableGet the special Node that marks a block with a missing Node.getStore()
Get the AttributeStore object that this topology file matches up to.static Topology
inputTopology(File file, double distance, Task task, Map<String,int[]> sizeLu, AttributeStore store, String label)
selectNeighbours(BitSet in, double distance)
Return a BitSet that contains all neightbours of the selections in the input set.void
setStore(AttributeStore store)
Get the AttributeStore object that this topology file matches up to.boolean
symmetry()
Due to the way the data is loaded this test will always succeed.toString()
-
Constructor Details
-
Topology
Create a new topology structure from a populated node list. Assumne 1:1 mapping between nodes and rows.
-
-
Method Details
-
copy
Copy the topology structure- Parameters:
distance
- set the maximum distance between polygons. Connections that have greater distances will be filtered out.
-
compare
-
getSpaceNode
Get the special Node that marks a block with a missing Node. -
getSize
public int getSize()Get the number of Nodes in the table -
getNodes
Get the entire array of Nodes -
getNode
Get the Node corresponding to the block index. -
getNodeByLabel
Get the Node corresponding to the block label -
getRowForNode
public int getRowForNode(int index) -
getMaxDistance
public double getMaxDistance()Get the maximum inter-neighbour distance used in this network. -
getFilename
Get the filename that was used to create this topology object. -
getStore
Get the AttributeStore object that this topology file matches up to. -
setStore
Get the AttributeStore object that this topology file matches up to. -
getLabel
Get the column name from the attribuet store that contains the unique row label. -
selectNeighbours
Return a BitSet that contains all neightbours of the selections in the input set.- Parameters:
in
- a BitSet that has the index values of the nodes of interest setdistance
- the maximum separation distance to select- Returns:
- a BitSet with values set for all of the neighbour nodes to the input selection.
-
symmetry
public boolean symmetry()Due to the way the data is loaded this test will always succeed. -
inputTopology
-
toString
-