public abstract class GraphDatabaseConnector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphDatabaseConnector.Link
The class Link represents a link from one node to another in the graph
database.
|
Constructor and Description |
---|
GraphDatabaseConnector() |
Modifier and Type | Method and Description |
---|---|
abstract GraphDatabaseConnector.Link[] |
getLinkedPedestrians(String nodeID)
Get relations: (nodA)-[SIMILARITY]-(nodeB)
|
abstract Attributes
|
getPedestrianAttributes(String nodeID)
Get the attributes of a pedestrian.
|
abstract float |
getPedestrianSimilarity(String idA,
String idB)
Get the similarity between two pedestrians.
|
abstract String |
getTrackletSavingDir(String nodeID)
Get the path of the directory saving the tracklet of a pedestrian.
|
abstract void |
setPedestrianAttributes(String nodeID,
Attributes attr)
Set the attributes of a pedestrian.
|
abstract void |
setPedestrianSimilarity(String idA,
String idB,
float similarity)
Set the similarity between two pedestrians.
|
abstract void |
setTrackletSavingPath(String nodeID,
String path)
Set the path of the directory saving the tracklet of a pedestrian.
|
public abstract void setTrackletSavingPath(@Nonnull String nodeID, @Nonnull String path)
nodeID
- the id of the pedestrian.path
- the path of the directory saving the tracklet of the pedestrian.public abstract String getTrackletSavingDir(@Nonnull String nodeID) throws NoSuchElementException
nodeID
- the id of the pedestrian.NoSuchElementException
- On failure finding the
pedestrian.
public abstract void setPedestrianSimilarity(@Nonnull String idA, @Nonnull String idB, float similarity)
idA
- the ID of the first pedestrian.idB
- the ID of the second pedestrian.similarity
- the similarity between them.public abstract float getPedestrianSimilarity(@Nonnull String idA, @Nonnull String idB) throws NoSuchElementException
idA
- the ID of the first pedestrian.idB
- the ID of the second pedestrian.NoSuchElementException
- On failure finding any of
these two pedestrian, or when there
is no link between them.public abstract void setPedestrianAttributes(@Nonnull String nodeID, @Nonnull Attributes attr)
nodeID
- the ID of the pedestrian.attr
- the attributes of the pedestrian.public abstract Attributes getPedestrianAttributes(@Nonnull String nodeID) throws NoSuchElementException
nodeID
- the ID of the pedestrian.NoSuchElementException
- On failure finding the
pedestrian.
public abstract GraphDatabaseConnector.Link[] getLinkedPedestrians(@Nonnull String nodeID) throws NoSuchElementException
nodeID
- the ID of the pedestrian.NoSuchElementException
- On failure finding
the pedestrian.