public interface IEdgeMap extends IDataProvider, IDataAcceptor, IDataMap
An edge map can be considered as a map that allows only edges as keys. Edge keys of an edge map must belong to the same graph.
There are data access methods defined for the most common typed values as well.
The edge values are initialized with Java(TM) default values (null, 0, 0.0, false) upon initialization.
Modifier and Type | Method and Description |
---|---|
Object |
get(Object edge)
Returns the value bound to the given edge.
|
boolean |
getBool(Object edge)
Returns the boolean value bound to the given edge.
|
double |
getDouble(Object edge)
Returns the double value bound to the given edge.
|
int |
getInt(Object edge)
Returns the integer value bound to the given edge.
|
void |
set(Object edge,
Object value)
Associates the given value to the given edge.
|
void |
setBool(Object edge,
boolean value)
Associates the given boolean value to the given edge.
|
void |
setDouble(Object edge,
double value)
Associates the given double value to the given edge.
|
void |
setInt(Object edge,
int value)
Associates the given integer value to the given edge.
|
Object get(Object edge)
get
in interface IDataProvider
boolean getBool(Object edge)
getBool
in interface IDataProvider
setBool
.double getDouble(Object edge)
getDouble
in interface IDataProvider
setDouble
.int getInt(Object edge)
getInt
in interface IDataProvider
setInt
.void set(Object edge, Object value)
set
in interface IDataAcceptor
void setBool(Object edge, boolean value)
setBool
in interface IDataAcceptor
void setDouble(Object edge, double value)
setDouble
in interface IDataAcceptor
void setInt(Object edge, int value)
setInt
in interface IDataAcceptor