Variable defaultConst

    default: {
        add: ((project: {
            id: string;
        }, simulation: {
            name: string;
            scheme: IModel;
        }) => Promise<INewSimulation>);
        archive: ((simulation: {
            id: string;
        }, to: string) => Promise<void>);
        copy: ((simulation: {
            id: string;
        }) => Promise<undefined | INewSimulation>);
        del: ((simulation: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | ISimulationGet<T>>);
        getAll: (<T>(data: T) => Promise<ISimulation<T>[]>);
        getLog: ((simulation: {
            id: string;
        }, file: string) => Promise<Buffer>);
        run: ((user: {
            id: string;
        }, simulation: {
            id: string;
        }, keepMesh?: boolean) => Promise<void>);
        stop: ((simulation: {
            id: string;
        }) => Promise<void>);
        update: ((simulation: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((project: {
          id: string;
      }, simulation: {
          name: string;
          scheme: IModel;
      }) => Promise<INewSimulation>)
        • (project, simulation): Promise<INewSimulation>
        • Add

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • simulation: {
                name: string;
                scheme: IModel;
            }

            Simulation

          Returns Promise<INewSimulation>

          Simulation

    • archive: ((simulation: {
          id: string;
      }, to: string) => Promise<void>)
        • (simulation, to): Promise<void>
        • Archive

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • to: string

            Target

          Returns Promise<void>

    • copy: ((simulation: {
          id: string;
      }) => Promise<undefined | INewSimulation>)
        • (simulation): Promise<undefined | INewSimulation>
        • Copy

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string

          Returns Promise<undefined | INewSimulation>

    • del: ((simulation: {
          id: string;
      }) => Promise<void>)
        • (simulation): Promise<void>
        • Delete

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | ISimulationGet<T>>)
    • getAll: (<T>(data: T) => Promise<ISimulation<T>[]>)
    • getLog: ((simulation: {
          id: string;
      }, file: string) => Promise<Buffer>)
        • (simulation, file): Promise<Buffer>
        • Get log

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • file: string

            File

          Returns Promise<Buffer>

          Log

    • run: ((user: {
          id: string;
      }, simulation: {
          id: string;
      }, keepMesh?: boolean) => Promise<void>)
        • (user, simulation, keepMesh?): Promise<void>
        • Run

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string
          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • OptionalkeepMesh: boolean

            Keep mesh

          Returns Promise<void>

    • stop: ((simulation: {
          id: string;
      }) => Promise<void>)
        • (simulation): Promise<void>
        • Stop

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string

          Returns Promise<void>

    • update: ((simulation: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (simulation, data): Promise<void>
        • Update

          Parameters

          • simulation: {
                id: string;
            }

            Simulation

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin