de.grogra.ext.exchangegraph
public class IOContext extends java.lang.Object
If the same context is used for import and export you can
use the same data, eg. give the same GroIMP nodes the same XEG node id,
see node map. This is used for example in the
OpenAlea plugin.
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashMap<java.lang.String,java.lang.String> |
exportNodeTypes
Mapping of GroIMP node types to standard XEG node types.
|
static java.util.HashMap<java.lang.String,java.lang.String> |
importNodeTypes
Mapping of standard XEG node types to GroIMP node types.
|
static java.util.HashMap<java.lang.Class,java.lang.Class> |
xegNodeTypes
Mapping of GroIMP node types to XEG helper classes for import and export.
|
| Constructor and Description |
|---|
IOContext() |
| Modifier and Type | Method and Description |
|---|---|
BidirectionalHashMap<java.lang.Long,Edge> |
getEdgeMap()
Returns the
edge map. |
BidirectionalHashMap<java.lang.Integer,java.lang.String> |
getEdgeTypes()
Returns the
edge types map. |
BidirectionalHashMap<java.lang.Long,Node> |
getNodeMap()
Returns the
node map. |
public static java.util.HashMap<java.lang.String,java.lang.String> exportNodeTypes
public static java.util.HashMap<java.lang.String,java.lang.String> importNodeTypes
public static java.util.HashMap<java.lang.Class,java.lang.Class> xegNodeTypes
public BidirectionalHashMap<java.lang.Long,Edge> getEdgeMap()
edge map.public BidirectionalHashMap<java.lang.Integer,java.lang.String> getEdgeTypes()
edge types map.public BidirectionalHashMap<java.lang.Long,Node> getNodeMap()
node map.