net.xqhs.graphs.context
Class ContextPattern

java.lang.Object
  extended by net.xqhs.util.config.Config
      extended by net.xqhs.util.logging.Unit
          extended by net.xqhs.graphs.graph.SimpleGraph
              extended by net.xqhs.graphs.pattern.GraphPattern
                  extended by net.xqhs.graphs.context.ContextPattern
All Implemented Interfaces:
Graph, net.xqhs.util.config.Configurable

public class ContextPattern
extends GraphPattern


Nested Class Summary
 
Nested classes/interfaces inherited from class net.xqhs.graphs.graph.SimpleGraph
SimpleGraph.NodeData
 
Nested classes/interfaces inherited from class net.xqhs.util.config.Config
net.xqhs.util.config.Config.ConfigLockedException
 
Field Summary
(package private)  Instant.Offset persistence
           
 
Fields inherited from class net.xqhs.graphs.graph.SimpleGraph
EDGE_LINE, EDGE_SEPARATOR, EDGE_TARGET, edges, nodes
 
Fields inherited from class net.xqhs.util.logging.Unit
DEFAULT_LEVEL, DEFAULT_UNIT_NAME
 
Constructor Summary
ContextPattern()
           
 
Method Summary
 ContextPattern add(GraphComponent component)
          This is the only method that actually adds a component to the graph.
 ContextPattern remove(GraphComponent component)
          This is the only method that actually removes a component from the graph.
 ContextPattern setPersistence(Instant.Offset patternPersistence)
           
 
Methods inherited from class net.xqhs.graphs.pattern.GraphPattern
addNode, addNode, maxK, readFrom
 
Methods inherited from class net.xqhs.graphs.graph.SimpleGraph
addAll, addEdge, computeDistancesFromUndirected, contains, getComponents, getEdges, getInEdges, getNodes, getNodesNamed, getOutEdges, getUnitName, m, n, removeAll, removeEdge, removeNode, size, toDot, toString
 
Methods inherited from class net.xqhs.util.logging.Unit
compose, dbg, doExit, getDefaultUnitName, l, le, lf, li, lock, lockedR, lr, lr, lw, setLink, setLink, setLogDisplay, setLogEnsureNew, setLoggerClass, setLoggerType, setLoggerTypeClass, setLogLevel, setLogReporter, setUnitName, setUnitName
 
Methods inherited from class net.xqhs.util.config.Config
build, ensureLocked, locked, lockedEx, makeDefaults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

persistence

Instant.Offset persistence
Constructor Detail

ContextPattern

public ContextPattern()
Method Detail

setPersistence

public ContextPattern setPersistence(Instant.Offset patternPersistence)

add

public ContextPattern add(GraphComponent component)
Description copied from class: SimpleGraph
This is the only method that actually adds a component to the graph. Any other methods call (should call) this method.

Specified by:
add in interface Graph
Overrides:
add in class SimpleGraph
Parameters:
component - - the component to add. Must be an implementation of GraphComponent that the implementing class can recognize.
Returns:
the graph itself, for chained calls.

remove

public ContextPattern remove(GraphComponent component)
Description copied from class: SimpleGraph
This is the only method that actually removes a component from the graph. Any other methods call (should call) this method.

Specified by:
remove in interface Graph
Overrides:
remove in class SimpleGraph
Parameters:
component - - the component to remove. Must be an implementation of GraphComponent that the implementing class can recognize.
Returns:
the graph itself, for chained calls.