grpc4bmi.bmi_grpc_server module
- class grpc4bmi.bmi_grpc_server.BmiServer(model: BmiServer, debug: Bmi = False)[source]
Bases:
BmiServiceServicer
BMI Server class, wrapping an existing python implementation and exposing it via GRPC across the memory space (to listening client processes). The class takes a package, module and class name and instantiates the BMI implementation by assuming a default constructor with no arguments.
- Parameters:
model – Bmi model object which must be wrapped by grpc
debug – If true then returns stacktrace in an error response. The stacktrace is returned in the trailing metadata as a DebugInfo (https://github.com/googleapis/googleapis/blob/07244bb797ddd6e0c1c15b02b4467a9a5729299f/google/rpc/error_details.proto#L46-L52) message.
- getComponentName(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridEdgeCount(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridEdgeNodes(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridFaceCount(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridFaceEdges(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridFaceNodes(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridNodeCount(request, context)[source]
Missing associated documentation comment in .proto file.
- getGridNodesPerFace(request, context)[source]
Missing associated documentation comment in .proto file.
- getInputItemCount(request, context)[source]
Missing associated documentation comment in .proto file.
- getInputVarNames(request, context)[source]
Missing associated documentation comment in .proto file.
- getOutputItemCount(request, context)[source]
Missing associated documentation comment in .proto file.
- getOutputVarNames(request, context)[source]
Missing associated documentation comment in .proto file.
- getValueAtIndices(request, context)[source]
Missing associated documentation comment in .proto file.