Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Export an XTCE representation of a space system.
*
* If the requested space system is not the root, containers will have
* their qualified name stripped by the top name. In addition there may
* also be references to objects from space systems that are not part of
* the export.
*
* Stream Mission Database items.
*
* This operation is intended for tools that need to efficiently fetch
* the full list of parameters or commands, without using repeated
* pagination-based requests.
*
*/
public abstract void getAlgorithm(T ctx, GetAlgorithmRequest request, Observer observer);
@Override
public final ServiceDescriptor getDescriptorForType() {
return Mdb.getDescriptor().getServices().get(0);
}
@Override
public final Message getRequestPrototype(MethodDescriptor method) {
if (method.getService() != getDescriptorForType()) {
throw new IllegalArgumentException("Method not contained by this service.");
}
switch (method.getIndex()) {
case 0:
return GetMissionDatabaseRequest.getDefaultInstance();
case 1:
return ExportJavaMissionDatabaseRequest.getDefaultInstance();
case 2:
return ListSpaceSystemsRequest.getDefaultInstance();
case 3:
return GetSpaceSystemRequest.getDefaultInstance();
case 4:
return ExportXtceRequest.getDefaultInstance();
case 5:
return StreamMissionDatabaseRequest.getDefaultInstance();
case 6:
return ListParametersRequest.getDefaultInstance();
case 7:
return GetParameterRequest.getDefaultInstance();
case 8:
return CreateParameterRequest.getDefaultInstance();
case 9:
return BatchGetParametersRequest.getDefaultInstance();
case 10:
return ListParameterTypesRequest.getDefaultInstance();
case 11:
return GetParameterTypeRequest.getDefaultInstance();
case 12:
return CreateParameterTypeRequest.getDefaultInstance();
case 13:
return ListContainersRequest.getDefaultInstance();
case 14:
return GetContainerRequest.getDefaultInstance();
case 15:
return ListCommandsRequest.getDefaultInstance();
case 16:
return GetCommandRequest.getDefaultInstance();
case 17:
return ListAlgorithmsRequest.getDefaultInstance();
case 18:
return GetAlgorithmRequest.getDefaultInstance();
default:
throw new IllegalStateException();
}
}
@Override
public final Message getResponsePrototype(MethodDescriptor method) {
if (method.getService() != getDescriptorForType()) {
throw new IllegalArgumentException("Method not contained by this service.");
}
switch (method.getIndex()) {
case 0:
return MissionDatabase.getDefaultInstance();
case 1:
return HttpBody.getDefaultInstance();
case 2:
return ListSpaceSystemsResponse.getDefaultInstance();
case 3:
return SpaceSystemInfo.getDefaultInstance();
case 4:
return HttpBody.getDefaultInstance();
case 5:
return MissionDatabaseItem.getDefaultInstance();
case 6:
return ListParametersResponse.getDefaultInstance();
case 7:
return ParameterInfo.getDefaultInstance();
case 8:
return ParameterInfo.getDefaultInstance();
case 9:
return BatchGetParametersResponse.getDefaultInstance();
case 10:
return ListParameterTypesResponse.getDefaultInstance();
case 11:
return ParameterTypeInfo.getDefaultInstance();
case 12:
return ParameterTypeInfo.getDefaultInstance();
case 13:
return ListContainersResponse.getDefaultInstance();
case 14:
return ContainerInfo.getDefaultInstance();
case 15:
return ListCommandsResponse.getDefaultInstance();
case 16:
return CommandInfo.getDefaultInstance();
case 17:
return ListAlgorithmsResponse.getDefaultInstance();
case 18:
return AlgorithmInfo.getDefaultInstance();
default:
throw new IllegalStateException();
}
}
@Override
public final void callMethod(MethodDescriptor method, T ctx, Message request, Observer future) {
if (method.getService() != getDescriptorForType()) {
throw new IllegalArgumentException("Method not contained by this service.");
}
switch (method.getIndex()) {
case 0:
getMissionDatabase(ctx, (GetMissionDatabaseRequest) request, (Observer)(Object) future);
return;
case 1:
exportJavaMissionDatabase(ctx, (ExportJavaMissionDatabaseRequest) request, (Observer)(Object) future);
return;
case 2:
listSpaceSystems(ctx, (ListSpaceSystemsRequest) request, (Observer)(Object) future);
return;
case 3:
getSpaceSystem(ctx, (GetSpaceSystemRequest) request, (Observer)(Object) future);
return;
case 4:
exportXtce(ctx, (ExportXtceRequest) request, (Observer)(Object) future);
return;
case 5:
streamMissionDatabase(ctx, (StreamMissionDatabaseRequest) request, (Observer)(Object) future);
return;
case 6:
listParameters(ctx, (ListParametersRequest) request, (Observer)(Object) future);
return;
case 7:
getParameter(ctx, (GetParameterRequest) request, (Observer)(Object) future);
return;
case 8:
createParameter(ctx, (CreateParameterRequest) request, (Observer)(Object) future);
return;
case 9:
batchGetParameters(ctx, (BatchGetParametersRequest) request, (Observer)(Object) future);
return;
case 10:
listParameterTypes(ctx, (ListParameterTypesRequest) request, (Observer)(Object) future);
return;
case 11:
getParameterType(ctx, (GetParameterTypeRequest) request, (Observer)(Object) future);
return;
case 12:
createParameterType(ctx, (CreateParameterTypeRequest) request, (Observer)(Object) future);
return;
case 13:
listContainers(ctx, (ListContainersRequest) request, (Observer)(Object) future);
return;
case 14:
getContainer(ctx, (GetContainerRequest) request, (Observer)(Object) future);
return;
case 15:
listCommands(ctx, (ListCommandsRequest) request, (Observer)(Object) future);
return;
case 16:
getCommand(ctx, (GetCommandRequest) request, (Observer)(Object) future);
return;
case 17:
listAlgorithms(ctx, (ListAlgorithmsRequest) request, (Observer)(Object) future);
return;
case 18:
getAlgorithm(ctx, (GetAlgorithmRequest) request, (Observer)(Object) future);
return;
default:
throw new IllegalStateException();
}
}
@Override
public final Observer callMethod(MethodDescriptor method, T ctx, Observer future) {
if (method.getService() != getDescriptorForType()) {
throw new IllegalArgumentException("Method not contained by this service.");
}
switch (method.getIndex()) {
default:
throw new IllegalStateException();
}
}
}