Search this API

y.base
Interface EdgeMap

All Superinterfaces:
DataAcceptor, DataMap, DataProvider
All Known Implementing Classes:
EdgeMapAdapter, Maps.HighPerformanceBoolMap, Maps.HighPerformanceDoubleMap, Maps.HighPerformanceIntMap, Maps.HighPerformanceObjectMap

public interface EdgeMap
extends DataProvider, DataAcceptor, DataMap

Provides access to data associated with an edge. 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.

 

Method Summary
 java.lang.Object get(java.lang.Object edge)
          Returns the value bound to the given edge.
 boolean getBool(java.lang.Object edge)
          Returns the boolean value bound to the given edge.
 double getDouble(java.lang.Object edge)
          Returns the double value bound to the given edge.
 int getInt(java.lang.Object edge)
          Returns the integer value bound to the given edge.
 void set(java.lang.Object edge, java.lang.Object value)
          Associates the given value to the given edge.
 void setBool(java.lang.Object edge, boolean value)
          Associates the given boolean value to the given edge.
 void setDouble(java.lang.Object edge, double value)
          Associates the given double value to the given edge.
 void setInt(java.lang.Object edge, int value)
          Associates the given integer value to the given edge.
 

Method Detail

set

void set(java.lang.Object edge,
         java.lang.Object value)
Associates the given value to the given edge.

Specified by:
set in interface DataAcceptor

get

java.lang.Object get(java.lang.Object edge)
Returns the value bound to the given edge.

Specified by:
get in interface DataProvider

setBool

void setBool(java.lang.Object edge,
             boolean value)
Associates the given boolean value to the given edge.

Specified by:
setBool in interface DataAcceptor

getBool

boolean getBool(java.lang.Object edge)
Returns the boolean value bound to the given edge.

Specified by:
getBool in interface DataProvider
Precondition:
The value must have been associated to the given edge by a call to setBool.

setDouble

void setDouble(java.lang.Object edge,
               double value)
Associates the given double value to the given edge.

Specified by:
setDouble in interface DataAcceptor

getDouble

double getDouble(java.lang.Object edge)
Returns the double value bound to the given edge.

Specified by:
getDouble in interface DataProvider
Precondition:
The value must have been associated to the given edge by a call to setDouble.

setInt

void setInt(java.lang.Object edge,
            int value)
Associates the given integer value to the given edge.

Specified by:
setInt in interface DataAcceptor

getInt

int getInt(java.lang.Object edge)
Returns the integer value bound to the given edge.

Specified by:
getInt in interface DataProvider
Precondition:
The value must have been associated to the given edge by a call to setInt.

© Copyright 2000-2018,
yWorks GmbH.
All rights reserved.