protos

package module
v0.0.0-...-596613a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TFDESolverServer_RunTask_FullMethodName = "/PFDESolverServer.TFDESolverServer/RunTask"
)

Variables

View Source
var File_config_proto protoreflect.FileDescriptor
View Source
var File_matrix_proto protoreflect.FileDescriptor
View Source
var File_result_proto protoreflect.FileDescriptor
View Source
var File_server_proto protoreflect.FileDescriptor
View Source
var TFDESolverServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "PFDESolverServer.TFDESolverServer",
	HandlerType: (*TFDESolverServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RunTask",
			Handler:    _TFDESolverServer_RunTask_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server.proto",
}

TFDESolverServer_ServiceDesc is the grpc.ServiceDesc for TFDESolverServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTFDESolverServerServer

func RegisterTFDESolverServerServer(s grpc.ServiceRegistrar, srv TFDESolverServerServer)

Types

type TClientConfig

type TClientConfig struct {
	SpaceCount                *uint64 `protobuf:"varint,1,opt,name=SpaceCount,proto3,oneof" json:"SpaceCount,omitempty"`                              // количество ячеек по x
	TimeCount                 *uint64 `protobuf:"varint,2,opt,name=TimeCount,proto3,oneof" json:"TimeCount,omitempty"`                                // количество ячеек по t
	LeftBound                 float64 `protobuf:"fixed64,3,opt,name=LeftBound,proto3" json:"LeftBound,omitempty"`                                     // левая граница отрезка сетки по x координате
	RightBound                float64 `protobuf:"fixed64,4,opt,name=RightBound,proto3" json:"RightBound,omitempty"`                                   // правая граница сетки по x координате
	MaxTime                   float64 `protobuf:"fixed64,5,opt,name=MaxTime,proto3" json:"MaxTime,omitempty"`                                         // граница отрезка времени по t координате
	Alpha                     float64 `protobuf:"fixed64,6,opt,name=Alpha,proto3" json:"Alpha,omitempty"`                                             // степень производой по x
	Gamma                     float64 `protobuf:"fixed64,7,opt,name=Gamma,proto3" json:"Gamma,omitempty"`                                             // степень производной по t
	SpaceStep                 float64 `protobuf:"fixed64,8,opt,name=SpaceStep,proto3" json:"SpaceStep,omitempty"`                                     // шаг x по сетке
	TimeStep                  float64 `protobuf:"fixed64,9,opt,name=TimeStep,proto3" json:"TimeStep,omitempty"`                                       // шаг t по сетке
	Beta                      float64 `protobuf:"fixed64,10,opt,name=Beta,proto3" json:"Beta,omitempty"`                                              // коэффициент доли лево/правосторонней производных [-1;+1]
	AlphaLeft                 float64 `protobuf:"fixed64,11,opt,name=AlphaLeft,proto3" json:"AlphaLeft,omitempty"`                                    // коэффициент граничных условий третьего рода для x == L
	BetaLeft                  float64 `protobuf:"fixed64,12,opt,name=BetaLeft,proto3" json:"BetaLeft,omitempty"`                                      // коэффициент граничных условий третьего рода для x == L
	AlphaRight                float64 `protobuf:"fixed64,13,opt,name=AlphaRight,proto3" json:"AlphaRight,omitempty"`                                  // коэффициент граничных условий третьего рода для x == R
	BetaRight                 float64 `protobuf:"fixed64,14,opt,name=BetaRight,proto3" json:"BetaRight,omitempty"`                                    // коэффициент граничных условий третьего рода для x == R
	LeftDiffusionCoefficient  string  `protobuf:"bytes,15,opt,name=LeftDiffusionCoefficient,proto3" json:"LeftDiffusionCoefficient,omitempty"`        // коэффициент диффузии
	RightDiffusionCoefficient string  `protobuf:"bytes,26,opt,name=RightDiffusionCoefficient,proto3" json:"RightDiffusionCoefficient,omitempty"`      // коэффициент диффузии
	DemolitionCoefficient     string  `protobuf:"bytes,16,opt,name=DemolitionCoefficient,proto3" json:"DemolitionCoefficient,omitempty"`              // коэффициент линейного сноса
	ZeroTimeState             string  `protobuf:"bytes,17,opt,name=ZeroTimeState,proto3" json:"ZeroTimeState,omitempty"`                              // функция u(x, 0)
	SourceFunction            string  `protobuf:"bytes,18,opt,name=SourceFunction,proto3" json:"SourceFunction,omitempty"`                            // функция f(x, t)
	LeftBoundState            string  `protobuf:"bytes,19,opt,name=LeftBoundState,proto3" json:"LeftBoundState,omitempty"`                            // функция u(L, t)
	RightBoundState           string  `protobuf:"bytes,20,opt,name=RightBoundState,proto3" json:"RightBoundState,omitempty"`                          // функция u(R, t)
	BordersAvailable          bool    `protobuf:"varint,21,opt,name=BordersAvailable,proto3" json:"BordersAvailable,omitempty"`                       // стоит ли учитывать граничные условия
	StochasticIterationCount  *uint64 `protobuf:"varint,22,opt,name=StochasticIterationCount,proto3,oneof" json:"StochasticIterationCount,omitempty"` // количество иттераций для стохастического метода
	RealSolutionName          *string `protobuf:"bytes,23,opt,name=RealSolutionName,proto3,oneof" json:"RealSolutionName,omitempty"`                  // названия истиного решения
	RealSolution              *string `protobuf:"bytes,24,opt,name=RealSolution,proto3,oneof" json:"RealSolution,omitempty"`                          // функция u(x, t);
	SolveMethods              *string `protobuf:"bytes,25,opt,name=SolveMethods,proto3,oneof" json:"SolveMethods,omitempty"`                          // методы для решения
	// contains filtered or unexported fields
}

func (*TClientConfig) Descriptor deprecated

func (*TClientConfig) Descriptor() ([]byte, []int)

Deprecated: Use TClientConfig.ProtoReflect.Descriptor instead.

func (*TClientConfig) GetAlpha

func (x *TClientConfig) GetAlpha() float64

func (*TClientConfig) GetAlphaLeft

func (x *TClientConfig) GetAlphaLeft() float64

func (*TClientConfig) GetAlphaRight

func (x *TClientConfig) GetAlphaRight() float64

func (*TClientConfig) GetBeta

func (x *TClientConfig) GetBeta() float64

func (*TClientConfig) GetBetaLeft

func (x *TClientConfig) GetBetaLeft() float64

func (*TClientConfig) GetBetaRight

func (x *TClientConfig) GetBetaRight() float64

func (*TClientConfig) GetBordersAvailable

func (x *TClientConfig) GetBordersAvailable() bool

func (*TClientConfig) GetDemolitionCoefficient

func (x *TClientConfig) GetDemolitionCoefficient() string

func (*TClientConfig) GetGamma

func (x *TClientConfig) GetGamma() float64

func (*TClientConfig) GetLeftBound

func (x *TClientConfig) GetLeftBound() float64

func (*TClientConfig) GetLeftBoundState

func (x *TClientConfig) GetLeftBoundState() string

func (*TClientConfig) GetLeftDiffusionCoefficient

func (x *TClientConfig) GetLeftDiffusionCoefficient() string

func (*TClientConfig) GetMaxTime

func (x *TClientConfig) GetMaxTime() float64

func (*TClientConfig) GetRealSolution

func (x *TClientConfig) GetRealSolution() string

func (*TClientConfig) GetRealSolutionName

func (x *TClientConfig) GetRealSolutionName() string

func (*TClientConfig) GetRightBound

func (x *TClientConfig) GetRightBound() float64

func (*TClientConfig) GetRightBoundState

func (x *TClientConfig) GetRightBoundState() string

func (*TClientConfig) GetRightDiffusionCoefficient

func (x *TClientConfig) GetRightDiffusionCoefficient() string

func (*TClientConfig) GetSolveMethods

func (x *TClientConfig) GetSolveMethods() string

func (*TClientConfig) GetSourceFunction

func (x *TClientConfig) GetSourceFunction() string

func (*TClientConfig) GetSpaceCount

func (x *TClientConfig) GetSpaceCount() uint64

func (*TClientConfig) GetSpaceStep

func (x *TClientConfig) GetSpaceStep() float64

func (*TClientConfig) GetStochasticIterationCount

func (x *TClientConfig) GetStochasticIterationCount() uint64

func (*TClientConfig) GetTimeCount

func (x *TClientConfig) GetTimeCount() uint64

func (*TClientConfig) GetTimeStep

func (x *TClientConfig) GetTimeStep() float64

func (*TClientConfig) GetZeroTimeState

func (x *TClientConfig) GetZeroTimeState() string

func (*TClientConfig) ProtoMessage

func (*TClientConfig) ProtoMessage()

func (*TClientConfig) ProtoReflect

func (x *TClientConfig) ProtoReflect() protoreflect.Message

func (*TClientConfig) Reset

func (x *TClientConfig) Reset()

func (*TClientConfig) String

func (x *TClientConfig) String() string

type TFDESolverServerClient

type TFDESolverServerClient interface {
	RunTask(ctx context.Context, in *TClientConfig, opts ...grpc.CallOption) (*TResults, error)
}

TFDESolverServerClient is the client API for TFDESolverServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TFDESolverServerServer

type TFDESolverServerServer interface {
	RunTask(context.Context, *TClientConfig) (*TResults, error)
	// contains filtered or unexported methods
}

TFDESolverServerServer is the server API for TFDESolverServer service. All implementations must embed UnimplementedTFDESolverServerServer for forward compatibility.

type TMatrix

type TMatrix struct {
	Rows    uint64    `protobuf:"varint,1,opt,name=Rows,proto3" json:"Rows,omitempty"`
	Columns uint64    `protobuf:"varint,2,opt,name=Columns,proto3" json:"Columns,omitempty"`
	Data    []float64 `protobuf:"fixed64,3,rep,packed,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*TMatrix) Descriptor deprecated

func (*TMatrix) Descriptor() ([]byte, []int)

Deprecated: Use TMatrix.ProtoReflect.Descriptor instead.

func (*TMatrix) GetColumns

func (x *TMatrix) GetColumns() uint64

func (*TMatrix) GetData

func (x *TMatrix) GetData() []float64

func (*TMatrix) GetRows

func (x *TMatrix) GetRows() uint64

func (*TMatrix) ProtoMessage

func (*TMatrix) ProtoMessage()

func (*TMatrix) ProtoReflect

func (x *TMatrix) ProtoReflect() protoreflect.Message

func (*TMatrix) Reset

func (x *TMatrix) Reset()

func (*TMatrix) String

func (x *TMatrix) String() string

type TResult

type TResult struct {
	MethodName string   `protobuf:"bytes,1,opt,name=MethodName,proto3" json:"MethodName,omitempty"`
	Field      *TMatrix `protobuf:"bytes,2,opt,name=Field,proto3" json:"Field,omitempty"`
	// contains filtered or unexported fields
}

func (*TResult) Descriptor deprecated

func (*TResult) Descriptor() ([]byte, []int)

Deprecated: Use TResult.ProtoReflect.Descriptor instead.

func (*TResult) GetField

func (x *TResult) GetField() *TMatrix

func (*TResult) GetMethodName

func (x *TResult) GetMethodName() string

func (*TResult) ProtoMessage

func (*TResult) ProtoMessage()

func (*TResult) ProtoReflect

func (x *TResult) ProtoReflect() protoreflect.Message

func (*TResult) Reset

func (x *TResult) Reset()

func (*TResult) String

func (x *TResult) String() string

type TResults

type TResults struct {
	Task             *TSolverConfig `protobuf:"bytes,1,opt,name=Task,proto3" json:"Task,omitempty"`
	Results          []*TResult     `protobuf:"bytes,2,rep,name=Results,proto3" json:"Results,omitempty"`
	RealSolution     *TMatrix       `protobuf:"bytes,3,opt,name=RealSolution,proto3,oneof" json:"RealSolution,omitempty"`
	RealSolutionName *string        `protobuf:"bytes,4,opt,name=RealSolutionName,proto3,oneof" json:"RealSolutionName,omitempty"`
	// contains filtered or unexported fields
}

func (*TResults) Descriptor deprecated

func (*TResults) Descriptor() ([]byte, []int)

Deprecated: Use TResults.ProtoReflect.Descriptor instead.

func (*TResults) GetRealSolution

func (x *TResults) GetRealSolution() *TMatrix

func (*TResults) GetRealSolutionName

func (x *TResults) GetRealSolutionName() string

func (*TResults) GetResults

func (x *TResults) GetResults() []*TResult

func (*TResults) GetTask

func (x *TResults) GetTask() *TSolverConfig

func (*TResults) ProtoMessage

func (*TResults) ProtoMessage()

func (*TResults) ProtoReflect

func (x *TResults) ProtoReflect() protoreflect.Message

func (*TResults) Reset

func (x *TResults) Reset()

func (*TResults) String

func (x *TResults) String() string

type TSolverConfig

type TSolverConfig struct {
	SpaceCount       uint64  `protobuf:"varint,1,opt,name=SpaceCount,proto3" json:"SpaceCount,omitempty"`              // количество ячеек по x
	TimeCount        uint64  `protobuf:"varint,2,opt,name=TimeCount,proto3" json:"TimeCount,omitempty"`                // количество ячеек по t
	LeftBound        float64 `protobuf:"fixed64,3,opt,name=LeftBound,proto3" json:"LeftBound,omitempty"`               // левая граница отрезка сетки по x координате
	RightBound       float64 `protobuf:"fixed64,4,opt,name=RightBound,proto3" json:"RightBound,omitempty"`             // правая граница сетки по x координате
	MaxTime          float64 `protobuf:"fixed64,5,opt,name=MaxTime,proto3" json:"MaxTime,omitempty"`                   // граница отрезка времени по t координате
	Alpha            float64 `protobuf:"fixed64,6,opt,name=Alpha,proto3" json:"Alpha,omitempty"`                       // степень производой по x
	Gamma            float64 `protobuf:"fixed64,7,opt,name=Gamma,proto3" json:"Gamma,omitempty"`                       // степень производной по t
	SpaceStep        float64 `protobuf:"fixed64,8,opt,name=SpaceStep,proto3" json:"SpaceStep,omitempty"`               // шаг x по сетке
	TimeStep         float64 `protobuf:"fixed64,9,opt,name=TimeStep,proto3" json:"TimeStep,omitempty"`                 // шаг t по сетке
	Beta             float64 `protobuf:"fixed64,10,opt,name=Beta,proto3" json:"Beta,omitempty"`                        // коэффициент доли лево/правосторонней производных [-1;+1]
	AlphaLeft        float64 `protobuf:"fixed64,11,opt,name=AlphaLeft,proto3" json:"AlphaLeft,omitempty"`              // коэффициент граничных условий третьего рода для x == L
	BetaLeft         float64 `protobuf:"fixed64,12,opt,name=BetaLeft,proto3" json:"BetaLeft,omitempty"`                // коэффициент граничных условий третьего рода для x == L
	AlphaRight       float64 `protobuf:"fixed64,13,opt,name=AlphaRight,proto3" json:"AlphaRight,omitempty"`            // коэффициент граничных условий третьего рода для x == R
	BetaRight        float64 `protobuf:"fixed64,14,opt,name=BetaRight,proto3" json:"BetaRight,omitempty"`              // коэффициент граничных условий третьего рода для x == R
	BordersAvailable bool    `protobuf:"varint,15,opt,name=BordersAvailable,proto3" json:"BordersAvailable,omitempty"` // стоит ли учитывать граничные условия
	// contains filtered or unexported fields
}

func (*TSolverConfig) Descriptor deprecated

func (*TSolverConfig) Descriptor() ([]byte, []int)

Deprecated: Use TSolverConfig.ProtoReflect.Descriptor instead.

func (*TSolverConfig) GetAlpha

func (x *TSolverConfig) GetAlpha() float64

func (*TSolverConfig) GetAlphaLeft

func (x *TSolverConfig) GetAlphaLeft() float64

func (*TSolverConfig) GetAlphaRight

func (x *TSolverConfig) GetAlphaRight() float64

func (*TSolverConfig) GetBeta

func (x *TSolverConfig) GetBeta() float64

func (*TSolverConfig) GetBetaLeft

func (x *TSolverConfig) GetBetaLeft() float64

func (*TSolverConfig) GetBetaRight

func (x *TSolverConfig) GetBetaRight() float64

func (*TSolverConfig) GetBordersAvailable

func (x *TSolverConfig) GetBordersAvailable() bool

func (*TSolverConfig) GetGamma

func (x *TSolverConfig) GetGamma() float64

func (*TSolverConfig) GetLeftBound

func (x *TSolverConfig) GetLeftBound() float64

func (*TSolverConfig) GetMaxTime

func (x *TSolverConfig) GetMaxTime() float64

func (*TSolverConfig) GetRightBound

func (x *TSolverConfig) GetRightBound() float64

func (*TSolverConfig) GetSpaceCount

func (x *TSolverConfig) GetSpaceCount() uint64

func (*TSolverConfig) GetSpaceStep

func (x *TSolverConfig) GetSpaceStep() float64

func (*TSolverConfig) GetTimeCount

func (x *TSolverConfig) GetTimeCount() uint64

func (*TSolverConfig) GetTimeStep

func (x *TSolverConfig) GetTimeStep() float64

func (*TSolverConfig) ProtoMessage

func (*TSolverConfig) ProtoMessage()

func (*TSolverConfig) ProtoReflect

func (x *TSolverConfig) ProtoReflect() protoreflect.Message

func (*TSolverConfig) Reset

func (x *TSolverConfig) Reset()

func (*TSolverConfig) String

func (x *TSolverConfig) String() string

type UnimplementedTFDESolverServerServer

type UnimplementedTFDESolverServerServer struct{}

UnimplementedTFDESolverServerServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedTFDESolverServerServer) RunTask

type UnsafeTFDESolverServerServer

type UnsafeTFDESolverServerServer interface {
	// contains filtered or unexported methods
}

UnsafeTFDESolverServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TFDESolverServerServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL