Interface NodeModel<N>


public interface NodeModel<N>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NodeModel<NodeContext<?>>
    A model based on itself.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(NodeContext<N> context)
    Create a node wrapping a context.
    getContext(N node)
    Returns the context of a node.
  • Field Details

  • Method Details

    • getContext

      NodeContext<N> getContext(N node)
      Returns the context of a node.
      Parameters:
      node - the node
      Returns:
      the node context
    • create

      N create(NodeContext<N> context)
      Create a node wrapping a context.
      Parameters:
      context - the node context
      Returns:
      the node instance