Module imp
Package de.grogra.imp

Class GraphDescriptor

java.lang.Object
de.grogra.imp.GraphDescriptor
All Implemented Interfaces:
Manageable
Direct Known Subclasses:
CustomGraphDescriptor, FilterDescriptor, GraphObjectDescriptor, MetaGraphDescriptor, ProjectGraphDescriptor

public abstract class GraphDescriptor extends Object implements Manageable
A GraphDescriptor represents the persistent information which is needed to obtain a specific Graph in the context of a View.
Author:
Ole Kniemeyer
  • Field Details

  • Constructor Details

    • GraphDescriptor

      public GraphDescriptor()
  • Method Details

    • fieldModified

      public void fieldModified(PersistenceField field, int[] indices, Transaction t)
      Specified by:
      fieldModified in interface Manageable
    • getStamp

      public int getStamp()
      Description copied from interface: Manageable
      Returns a stamp for this object. Each modification to this object increments the stamp. The initial stamp is non-negative.
      Specified by:
      getStamp in interface Manageable
      Returns:
      a stamp
    • manageableReadResolve

      public Manageable manageableReadResolve()
      Specified by:
      manageableReadResolve in interface Manageable
    • manageableWriteReplace

      public Object manageableWriteReplace()
      Specified by:
      manageableWriteReplace in interface Manageable
    • getGraph

      public abstract Graph getGraph(View view)
      Returns the graph described by this descriptor, given the context view.
      Parameters:
      view - the context for the graph
      Returns:
      graph corresponding to this descriptor
    • substituteSelection

      public void substituteSelection(GraphState[] gs, Object[] object, boolean[] asNode, int index)
    • getPathFor

      public Path getPathFor(View view, GraphState gs, Object obj, boolean node)