import { ErasConfigService } from '../eras-config.service'; import { ErasHttpService } from '../eras-http.service'; import { Observable } from 'rxjs/Observable'; import { Algorithm } from '../../model/algorithm'; export declare class AlgorithmDataService { private erasConfigService; private erasHttpService; constructor(erasConfigService: ErasConfigService, erasHttpService: ErasHttpService); /** * Return a Objservable of a JobId * * @param param */ execute(param: ExecutionParam): Observable; /** * * ___Returns:___ * * ``` typescript * { * name: string; * platform: string; * } * ``` * * @param algorithmId algorithm id * @param versionId algorithm`s version id */ executionNode(algorithmId: string, versionId: string): Observable; /** * Returns a Observable array of [Algorithm]{@link Algorithm} * * ___see also___: [Algorithm]{@link Algorithm} */ algorithms(): Observable; } export interface ExecutionParam { remoteCommand: { algorithmId: string; versionId: string; projectId: string; }; args: any; description: string; priority: string; emailOnTerminated: boolean; candidateMachines: any[]; numberOfJobs?: number; }