2 % A
generic event occurring in a Network.
4 % Object of the Event
class are not passed by handle.
6 % Copyright (c) 2012-2026, Imperial College London
14 state; % state information when the event occurs (optional)
15 t; % timestamp when the event occurs (optional)
16 job; % job id (optional)
20 function self = Event(event, node,
class, prob, state, t, job)
21 % SELF = EVENT(EVENT, NODE, CLASS, PROB, STATE, TIMESTAMP, JOB)
31 state = []; % local state of the node or environment transition
39 job = NaN; % timestamp
47 line_printf('(%s: node: %d, class: %d)',EventType.toText(self.event),self.node,self.class);
50 line_printf('(%s: node: %d, class: %d, time: %d)',EventType.toText(self.event),self.node,self.class,self.t);
52 line_printf('(%s: node: %d, class: %d, job: %d, time: %d)',EventType.toText(self.event),self.node,self.class,self.job,self.t);