Class TraversedObjectsContext

java.lang.Object
jadex.common.transformation.traverser.TraversedObjectsContext
Direct Known Subclasses:
SCloner.CloneContext

public class TraversedObjectsContext extends Object
Standard context for Traverser, keeps track of already traversed objects.
  • Field Details

    • traversed

      protected Map<Object,Object> traversed
      Map of traversed objects
  • Constructor Details

    • TraversedObjectsContext

      public TraversedObjectsContext()
      Creates the context.
  • Method Details

    • put

      public void put(Object input, Object output)
      Adds an the input and output of a traversed object.
      Parameters:
      input - The input object.
      output - The output object.
    • get

      public Object get(Object input)
      Gets an output object of a traversed object.
      Parameters:
      input - The input object.
      Returns:
      The output object.
    • put

      public static final void put(Object context, Object input, Object output)
      Adds an the input and output of a traversed object if context is a TraversedObjectContext.
      Parameters:
      context - The context.
      input - The input object.
      output - The output object.