Class S7DriverContext

java.lang.Object
org.apache.plc4x.java.s7.readwrite.context.S7DriverContext
All Implemented Interfaces:
HasConfiguration<S7Configuration>, DriverContext

public class S7DriverContext extends Object implements DriverContext, HasConfiguration<S7Configuration>
  • Constructor Details

    • S7DriverContext

      public S7DriverContext()
  • Method Details

    • setConfiguration

      public void setConfiguration(S7Configuration configuration)
      Specified by:
      setConfiguration in interface HasConfiguration<S7Configuration>
    • isPassiveMode

      public boolean isPassiveMode()
    • setPassiveMode

      public void setPassiveMode(boolean passiveMode)
    • getCallingTsapId

      public int getCallingTsapId()
    • setCallingTsapId

      public void setCallingTsapId(int callingTsapId)
    • getCalledTsapId

      public int getCalledTsapId()
    • setCalledTsapId

      public void setCalledTsapId(int calledTsapId)
    • getCotpTpduSize

      public COTPTpduSize getCotpTpduSize()
    • setCotpTpduSize

      public void setCotpTpduSize(COTPTpduSize cotpTpduSize)
    • getPduSize

      public int getPduSize()
    • setPduSize

      public void setPduSize(int pduSize)
    • getMaxAmqCaller

      public int getMaxAmqCaller()
    • setMaxAmqCaller

      public void setMaxAmqCaller(int maxAmqCaller)
    • getMaxAmqCallee

      public int getMaxAmqCallee()
    • setMaxAmqCallee

      public void setMaxAmqCallee(int maxAmqCallee)
    • getControllerType

      public S7ControllerType getControllerType()
    • setControllerType

      public void setControllerType(S7ControllerType controllerType)
    • getNearestMatchingTpduSize

      protected COTPTpduSize getNearestMatchingTpduSize(short tpduSizeParameter)
      Iterate over all values until one is found that the given tpdu size will fit.
      Parameters:
      tpduSizeParameter - requested tpdu size.
      Returns:
      smallest COTPTpduSize which will fit a given size of tpdu.