Пример #1
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchKey(self.key, s2)
Пример #2
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchIndice(self.idx, s2)
Пример #3
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchHook(self.call, s2)
Пример #4
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchEventExpr(self.precond, s2, self.clean_event)
Пример #5
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     s1.matchValue(self.v, s2)
Пример #6
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     # TODO:!!! the event must be store in the LivingState
     s1.matchEvent(self.n, s2)
Пример #7
0
 def attach(self, s1: state.State, s2: state.State, sr: state.StateRegister):
     if self.t is not object:
         if self.iskindof:
             s1.matchKindType(self.t, s2)
         else:
             s1.matchType(self.t, s2)
         # to avoid artefact, store the minimal subelement to match
         s1.minsubelmt = len(self.attrs)
Пример #8
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     if self.t is not object:
         if self.iskindof:
             s1.matchKindType(self.t, s2)
         else:
             s1.matchType(self.t, s2)
         # to avoid artefact, store the minimal subelement to match
         s1.minsubelmt = len(self.attrs)
Пример #9
0
 def attach(
     self,
     s1: state.State,
     s2: state.State,
     sr: state.StateRegister
 ):
     if self.name is not None:
         s1.matchAttr(self.name, s2)
     else:
         s1.matchDefault(s2)
Пример #10
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchKey(self.key, s2)
Пример #11
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchIndice(self.idx, s2)
Пример #12
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchHook(self.call, s2)
Пример #13
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     # TODO:!!! the event must be store in the LivingState
     s1.matchEvent(self.n, s2)
Пример #14
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchEventExpr(self.precond, s2, self.clean_event)
Пример #15
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     s1.matchValue(self.v, s2)
Пример #16
0
 def attach(self, s1: state.State, s2: state.State,
            sr: state.StateRegister):
     if self.name is not None:
         s1.matchAttr(self.name, s2)
     else:
         s1.matchDefault(s2)