-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMVM.d.ts
More file actions
41 lines (41 loc) · 1.56 KB
/
MVM.d.ts
File metadata and controls
41 lines (41 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/// <reference types="node" />
import { IMVM, MVMError } from './MVMInterface';
import { Capability } from './RunOptions';
import EventEmitter from 'events';
export * from './MVMInterface';
/**
* Used to represent the state of MATLAB
*/
export declare enum MatlabMVMConnectionState {
DISCONNECTED = "disconnected",
CONNECTED = "connected"
}
/**
* Provides an interface for sending evals and fevals and listening to the results.
*/
export default class MVM extends EventEmitter implements IMVM {
private _mvmImpl?;
private _readyPromise?;
private _isReady;
private _lifecycleManager;
private _logger;
constructor(lifecycleManager: any, logger: any);
eval(command: string, isUserEval?: boolean, capabilitiesToRemove?: Capability[]): Promise<void>;
feval(functionName: string, nargout: number, args: unknown[], isUserEval?: boolean, capabilitiesToRemove?: Capability[]): Promise<MVMError | any>;
setBreakpoint(fileName: string, lineNumber: number, condition?: string, anonymousIndex?: number): Promise<void>;
clearBreakpoint(fileName: string, lineNumber: number, condition?: string, anonymousIndex?: number): Promise<void>;
unpause(): void;
interrupt(): void;
pauseInDebugger(): void;
getMatlabRelease(): string | null;
isReady(): boolean;
waitUntilReady(): Promise<void>;
private _handleMatlabDisconnected;
private _handleMatlabConnected;
private _tryAttach;
private _handleReady;
private _handleReadyError;
private _detectImpl;
private _setupDebuggerListeners;
private _setupDebugListener;
}