Class MapEvaluationContext<NAMETYPE extends Name>

java.lang.Object
com.yahoo.tensor.evaluation.MapEvaluationContext<NAMETYPE>
All Implemented Interfaces:
EvaluationContext<NAMETYPE>, TypeContext<NAMETYPE>

public class MapEvaluationContext<NAMETYPE extends Name> extends Object implements EvaluationContext<NAMETYPE>
Author:
bratseth
  • Constructor Details

    • MapEvaluationContext

      public MapEvaluationContext()
  • Method Details

    • put

      public void put(String name, Tensor tensor)
    • getType

      public TensorType getType(String name)
      Description copied from interface: TypeContext
      Returns the type of the tensor with this name by converting from a string name.
      Specified by:
      getType in interface TypeContext<NAMETYPE extends Name>
      Returns:
      returns the type of the tensor which will be returned by calling getTensor(name) or null if getTensor will return null.
    • getType

      public TensorType getType(NAMETYPE name)
      Description copied from interface: TypeContext
      Returns the type of the tensor with this name.
      Specified by:
      getType in interface TypeContext<NAMETYPE extends Name>
      Returns:
      returns the type of the tensor which will be returned by calling getTensor(name) or null if getTensor will return null.
    • getTensor

      public Tensor getTensor(String name)
      Description copied from interface: EvaluationContext
      Returns the tensor bound to this name, or null if none
      Specified by:
      getTensor in interface EvaluationContext<NAMETYPE extends Name>