agl2
Class GraphProperties

java.lang.Object
  |
  +--agl2.util.PropertyMap
        |
        +--agl2.GraphProperties
All Implemented Interfaces:
GraphTag, java.io.Serializable

public class GraphProperties
extends PropertyMap
implements GraphTag

Every graph provides has set of properties. Users may access the properties through the GraphProperties object. Every property is named by a GraphTag, and each GraphTag has a value. The values can be a simple types or map types. One GraphTag(GRAPH_TRAITS) is a system map maintaining information about the structure and properties of the graph. Other maps are available and may be created by the user.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class agl2.GraphTag
GraphTag.MapTag, GraphTag.Tag
 
Field Summary
 
Fields inherited from class agl2.util.PropertyMap
propertyMaps
 
Fields inherited from interface agl2.GraphTag
allTags, BIGRAPH, DIGRAPH, EDGE_DATA, EDGE_INDEX, EDGE_WEIGHT, GRAPH_ACYLIC, GRAPH_NAME, GRAPH_ROOT, GRAPH_TRAITS, MULTIGRAPH, OBJECT_VERTEX, UNGRAPH, VERTEX_COLOR, VERTEX_DATA, VERTEX_DISTANCE, VERTEX_EDGEMAP, VERTEX_INDEX
 
Method Summary
 void addTraits(java.util.Set tags)
          Short hand GraphTraits
 boolean getBoolProperty(GraphTag map, java.lang.Object ve)
           
 java.lang.Object getProperty(GraphTag map, java.lang.Object VorE)
           
 java.lang.Object getTrait(GraphTag tag)
           
 java.util.Set getTraits()
           
 boolean hasProperty(GraphTag map, java.lang.Object VorE)
           
 boolean hasPropertyMap(GraphTag map)
           
 boolean hasTrait(GraphTag tag)
           
 void putBoolProperty(GraphTag map, java.lang.Object ve, boolean v)
          Type specific routines
 void putProperty(GraphTag map, java.lang.Object VorE, java.lang.Object value)
           
 void putPropertyMap(GraphTag tag, java.util.Map m)
           
 void putTrait(GraphTag tag, boolean b)
           
 void putTrait(GraphTag tag, java.lang.Object value)
           
 java.util.Map remPropertyMap(GraphTag map)
           
 java.lang.String toString()
           
 
Methods inherited from class agl2.util.PropertyMap
getProperty, getPropertyMap, hasProperty, hasPropertyMap, putProperty, putPropertyMap, remPropertyMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addTraits

public void addTraits(java.util.Set tags)
Short hand GraphTraits


putTrait

public void putTrait(GraphTag tag,
                     java.lang.Object value)

putTrait

public void putTrait(GraphTag tag,
                     boolean b)

getTrait

public java.lang.Object getTrait(GraphTag tag)

hasTrait

public boolean hasTrait(GraphTag tag)

getTraits

public java.util.Set getTraits()

putBoolProperty

public void putBoolProperty(GraphTag map,
                            java.lang.Object ve,
                            boolean v)
Type specific routines

Parameters:
map - A map property
ve - vertex or edge
v - the value

getBoolProperty

public boolean getBoolProperty(GraphTag map,
                               java.lang.Object ve)

putPropertyMap

public void putPropertyMap(GraphTag tag,
                           java.util.Map m)

remPropertyMap

public java.util.Map remPropertyMap(GraphTag map)

hasPropertyMap

public boolean hasPropertyMap(GraphTag map)

putProperty

public void putProperty(GraphTag map,
                        java.lang.Object VorE,
                        java.lang.Object value)

getProperty

public java.lang.Object getProperty(GraphTag map,
                                    java.lang.Object VorE)

hasProperty

public boolean hasProperty(GraphTag map,
                           java.lang.Object VorE)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object