com.kuka.comm.codec
Class SwitchInfo<S,I>

java.lang.Object
  extended by com.kuka.comm.codec.SwitchInfo<S,I>
Type Parameters:
S - the type of the switch token
I - the type of the decoder input

public final class SwitchInfo<S,I>
extends Object

A SwitchInfo is used by a SwitchDecoder to select the actual Decoder based on the switch token (of type S). The selected Decoder will then decode the input provided by the SwitchInfo (of type I).


Constructor Summary
SwitchInfo(S switchToken, I input)
          Creates a new SwitchInfo with the given switch token and input for next decoder that will be selected by the SwitchDecoder based on the given switch token.
 
Method Summary
 I getInput()
          Returns the input for the decoder associated with the given switch token.
 S getSwitchToken()
          Returns the switch token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchInfo

public SwitchInfo(S switchToken,
                  I input)
Creates a new SwitchInfo with the given switch token and input for next decoder that will be selected by the SwitchDecoder based on the given switch token.

Parameters:
switchToken - the switch token
input - the input for the decoder associated with the given switch token
Method Detail

getSwitchToken

public S getSwitchToken()
Returns the switch token.

Returns:
the switch token

getInput

public I getInput()
Returns the input for the decoder associated with the given switch token.

Returns:
the input for the decoder associated with the given switch token


Copyright © 2019. All rights reserved.