java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<F,T,D>
Type Parameters:
F - type of source
T - type of result
D - the type parameter
Direct Known Subclasses:
ActionConvertor, ActionResponseConvertor, FlowConvertor, FlowFlagsConvertor, FlowFlagsV10Convertor, FlowInstructionResponseConvertor, FlowStatsResponseConvertor, GroupConvertor, GroupDescStatsResponseConvertor, GroupStatsResponseConvertor, MatchConvertor, MatchResponseConvertor, MatchV10Convertor, MatchV10ResponseConvertor, MeterConfigStatsResponseConvertor, MeterConvertor, MeterStatsResponseConvertor, PacketOutConvertor, PortConvertor, TableFeaturesConvertor, TableFeaturesResponseConvertor

public abstract class Convertor<F,T,D extends ConvertorData> extends Object
Converts OpenflowJava to MDSal model and vice versa.
  • Constructor Details

    • Convertor

      public Convertor()
  • Method Details

    • getConvertorExecutor

      protected ConvertorExecutor getConvertorExecutor()
      Gets convertor manager.
      Returns:
      the convertor manager
    • setConvertorExecutor

      public void setConvertorExecutor(ConvertorExecutor convertorExecutor)
      Sets convertor manager.
      Parameters:
      convertorExecutor - the convertor manager
    • getTypes

      public abstract Collection<Class<?>> getTypes()
      Gets type of convertor, used in ConvertorManager.
      Returns:
      the type of convertor
    • convert

      public abstract T convert(F source, D data)
      Converts source to result.
      Parameters:
      source - source
      data - convertor data
      Returns:
      converted source