I am currently looking into timed automata for a project. I am thinking about a timed automaton where a clock only advances when the automaton is in a certain state. However, my little knowledge in the domain makes me wonder whether somebody already defined timed automata like that.
As an example:
I.e. I have a timed automaton with two states: L0 and L1.
My clock is c - the total time that the automaton spent in time L1.
The clock c should only advance when the automaton is in state L1.
(see upper part of drawing)
Solution with my existing knowledge (not very elegant):
I can see a way where I could use event-clock automata (1) to achieve this, by triggering an event a and on entering L1 the value of c is set to:
c := c - xa
where xa is the time since event a.
(See lower part of the drawing)
However, I'm not convinced of this solution as it is inelegant, further I'm not sure whether timed automata allow for the setting of clocks. So far I only read about reset to zero.
(1) http://pub.ist.ac.at/~tah/Publications/a_determinizable_class_of_timed_automata.pdf
