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 IDataProviderboolean getBool(Object edge)
getBool in interface IDataProvidersetBool.double getDouble(Object edge)
getDouble in interface IDataProvidersetDouble.int getInt(Object edge)
getInt in interface IDataProvidersetInt.void set(Object edge, Object value)
set in interface IDataAcceptorvoid setBool(Object edge, boolean value)
setBool in interface IDataAcceptorvoid setDouble(Object edge, double value)
setDouble in interface IDataAcceptorvoid setInt(Object edge, int value)
setInt in interface IDataAcceptor