SpatialModel

public interface SpatialModel<E>

This interface is implemented by classes describing a spatial model. This is a labelled graph where nodes are identified by integers, while edges have type E.

Inheritors

Functions

Link copied to clipboard
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyList(int locations, RecordHandler edgeRecordHandler, Array<Array<double>> data)
This is an utility method that builds a SpatialModel from an adjacency list represented as an array of doubles.
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyList(int locations, RecordHandler edgeRecordHandler, Array<Array<String>> data)
This is an utility method that builds a SpatialModel from an adjacency list represented as an array of String.
Link copied to clipboard
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyMatrix(int locations, RecordHandler edgeRecordHandler, Array<Array<Array<double>>> objects)
public static SpatialModel<MoonLightRecord> buildSpatialModelFromAdjacencyMatrix(int locations, RecordHandler edgeRecordHandler, Array<Array<Array<String>>> data)
This is an utility method that builds a SpatialModel from an adjacency matrix represented as an array of doubles.
Link copied to clipboard
public abstract E get(int source, int target)
Returns the value of the edge connecting src to trg.
Link copied to clipboard
public static Boolean isFull(Array<double> array)
public static Boolean isFull(Array<String> array)
Link copied to clipboard
public abstract List<Pair<Integer, E>> next(int location)
Returns the list of exiting edges from l.
Link copied to clipboard
public abstract List<Pair<Integer, E>> previous(int location)
Returns the list of incoming edges in l.
Link copied to clipboard
public abstract int size()