-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObjectModel.ts
49 lines (46 loc) · 2.1 KB
/
ObjectModel.ts
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
42
43
44
45
46
47
48
49
import ModelCollection from "./ModelCollection";
import ModelDictionary from "./ModelDictionary";
import ModelObject from "./ModelObject";
import Board from "./boards";
import Directories from "./directories";
import Fan from "./fans";
import Heat from "./heat";
import HttpEndpoint from "./httpEndpoints";
import InputChannel from "./inputs/InputChannel";
import Job from "./job";
import Limits from "./limits";
import Message from "./messages";
import Move from "./move";
import Network from "./network";
import Plugin from "./plugins";
import Sensors from "./sensors";
import Spindle from "./spindles";
import State from "./state";
import Tool from "./tools";
import UserSession from "./userSessions";
import Volume from "./volumes";
/**
* Refer to the DSF/RRF documentation for descriptions of the object model fields
*/
export class ObjectModel extends ModelObject {
readonly boards: ModelCollection<Board> = new ModelCollection(Board);
readonly directories: Directories = new Directories();
readonly fans: ModelCollection<Fan | null> = new ModelCollection(Fan);
readonly global: ModelDictionary<any> = new ModelDictionary(false);
readonly heat: Heat = new Heat();
readonly httpEndpoints: ModelCollection<HttpEndpoint> = new ModelCollection(HttpEndpoint);
readonly inputs: ModelCollection<InputChannel | null> = new ModelCollection(InputChannel);
readonly job: Job = new Job();
readonly limits: Limits = new Limits();
readonly messages: ModelCollection<Message> = new ModelCollection(Message); // must be manually cleared after updates
readonly move: Move = new Move();
readonly network: Network = new Network();
readonly plugins: ModelDictionary<Plugin> = new ModelDictionary(true, Plugin);
readonly sensors: Sensors = new Sensors();
readonly spindles: ModelCollection<Spindle | null> = new ModelCollection(Spindle);
readonly state: State = new State();
readonly tools: ModelCollection<Tool | null> = new ModelCollection(Tool);
readonly userSessions: ModelCollection<UserSession> = new ModelCollection(UserSession);
readonly volumes: ModelCollection<Volume> = new ModelCollection(Volume);
}
export default ObjectModel