2 % A mode
event occurring in a Network.
4 % Object of the Event
class are not passed by handle.
6 % Copyright (c) 2012-2026, Imperial College London
15 state; % state information when the
event occurs (optional)
16 t; % timestamp when the
event occurs (optional)
17 job; % job id (optional)
21 function self = ModeEvent(event, node, mode, weight, prob, state, t, job)
22 % SELF = MODEEVENT(EVENT, NODE, MODE, WEIGHT, PROB, STATE, TIMESTAMP, JOB)
36 state = []; % local state of the node or environment transition
44 job = NaN; % timestamp
52 line_printf('(%s: node: %d, mode: %d)',EventType.toText(self.event),self.node,self.mode);
55 line_printf('(%s: node: %d, mode: %d, time: %d)',EventType.toText(self.event),self.node,self.mode,self.t);
57 line_printf('(%s: node: %d, mode: %d, job: %d, time: %d)',EventType.toText(self.event),self.node,self.mode,self.job,self.t);