Frontend API

@Injectable() export class Workspace

A workspace is the same concept as the workspace in an IDE. So one workspace correspond to a project as a user point of view. It has a directory, and specifically to padins, it has a workflow. This workflow is the flow.json file in the root of the folder. Take a look the Flow.ts file to know more about it.

In this project, that is the client side of padins, the workspace class store the network connexion information, the running state and the id and name of the project.

Created by antoine on 20/06/17.

setRunningStatus (network: string, running: boolean): void

Set the running status of the given network.

setNetworkStatus (msg: Object): void

Set the network status information from the received message.

setNetworkLastStopTime (network: string, time: string): void

Set the last stop time information of the given network.

setNetworkLastStartTime (network: string, time: string): void

Set the last start time information of the given network.

networkConnected (network: string): void

Set the connexion state of the given network to True

networkDisconnected (network: string): void

Set the connexion state of the given network to False

private network (id: string): Network

Retrieve the Network instance from its id.

@Injectable() export class Network

Class Network that stores the workspace’s network information.