public abstract class AbstractGraph extends Object implements Graph
Modifier and Type | Field and Description |
---|---|
protected Map<String,GraphObject> |
objectMap
Objects are stored in this map.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractGraph()
Empty constructor that initializes the object map.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears memory of all wrapper in the object map.
|
GraphObject |
getGraphObject(Object obj)
Gets the related wrapper for the given object, creates the wrapper if not created before.
|
GraphObject |
getGraphObject(String id)
Gets the wrapper object with its id (key).
|
abstract String |
getKey(Object wrapped) |
Map<String,GraphObject> |
getObjectMap() |
abstract Node |
wrap(Object obj)
Creates the wrapper for the given object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWrappedSet, getWrapperMap, getWrapperSet
protected Map<String,GraphObject> objectMap
protected AbstractGraph()
public GraphObject getGraphObject(Object obj)
getGraphObject
in interface Graph
obj
- Object to wrappublic GraphObject getGraphObject(String id)
id
- Whatever getKey method return for the wrapped object.public Map<String,GraphObject> getObjectMap()
public void clear()
public abstract String getKey(Object wrapped)
wrapped
- Object to wrapCopyright © 2015 BioPAX. All rights reserved.