Class IForceServiceGrpc.IForceServiceBlockingStub

java.lang.Object
io.grpc.stub.AbstractStub<IForceServiceGrpc.IForceServiceBlockingStub>
io.grpc.stub.AbstractBlockingStub<IForceServiceGrpc.IForceServiceBlockingStub>
Arp.Plc.Gds.Services.Grpc.IForceServiceGrpc.IForceServiceBlockingStub
Enclosing class:
IForceServiceGrpc

public static final class IForceServiceGrpc.IForceServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<IForceServiceGrpc.IForceServiceBlockingStub>
  • Constructor Details

    • IForceServiceBlockingStub

      private IForceServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
  • Method Details

    • build

      protected IForceServiceGrpc.IForceServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<IForceServiceGrpc.IForceServiceBlockingStub>
    • addVariable

      / <summary>
       / Adds a new variable and value for forcing. Enables force mode.
       / </summary>
       / <remarks>
       / The enabled force mode is signalized by notification and by the
       / activated 'PlcState.Forcing'
       / </remarks>
       / <param name="item">
       / Force item <see cref="Arp.System.Commons.Services.Io.ForceItem" />, which contains the the name
       / of the variable with the full instance path and the force value.
       / The data type of the force value must be equal with the data type
       / of the target variable.
       / </param>
       / <returns>
       / Returns <see cref="Arp.System.Commons.Services.Io.DataAccessError.None" /> on success.
       / </returns>
       
    • removeVariable

      public com.google.protobuf.Empty removeVariable(IForceServiceOuterClass.IForceServiceRemoveVariableRequest request)
      / <summary>
       / Resets forced variable. Disables force mode after force list is empty.
       / </summary>
       / <param name="variableName">
       / Instance path of the variable.
       / </param>
       
    • getVariables

      public IForceServiceOuterClass.IForceServiceGetVariablesResponse getVariables(com.google.protobuf.Empty request)
      / <summary>
       / Gets a list of all forced variables.
       / </summary>
       / <returns>
       / Returns a list with all existing <see cref="Arp.System.Commons.Services.Io.ForceItem" /> objects.
       / </returns>
       
    • reset

      public com.google.protobuf.Empty reset(com.google.protobuf.Empty request)
      / <summary>
       / Resets the force list. Disables force mode.
       / </summary>
       / <remarks>
       / The disabled force mode is signalized by notification and by the
       / deactivated PlcState.
       / </remarks>
       
    • isForcable

      / <summary>
       / Tests whether variable is forcable.
       / </summary>
       / <remarks>
       / The variable has to meet the following requirements to be forcable:
       / 1. The kind of variable should be an In- or an Out-port of a program
       / (IEC, C ++, Simulink ...) or a variable that is connected to I/O data.
       / 2. The data type of the variable has to be supported.
       / </remarks>
       / <returns>
       / <b>true</b>if the variable is forcable.</returns>
       
    • isActive

      public IForceServiceOuterClass.IForceServiceIsActiveResponse isActive(com.google.protobuf.Empty request)
      / <summary>
       / Tests whether force mode is active.
       / </summary>
       / <returns>
       / <b>true</b>if the force mode is active.</returns>