You are currently viewing a new version of our website. To view the old version click .
Electronics
  • Article
  • Open Access

21 April 2023

Property Preservation of Object-Oriented Petri Reduction Net Based Representation for Embedded Systems

,
,
and
School of Computer Science and Technology, Shandong Jianzhu University, Jinan 250101, China
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Digital Control of Power Electronics

Abstract

Embedded systems are widely used in automotive electronics, smart home, smart medical, aerospace and other fields. Aiming at the problem of formal modeling and verification analysis of embedded systems, a solution is proposed using extended Petri net reduction operations. Petri net based representation for embedded system (PRES+) and the object-oriented technology are combined to obtain the object-oriented PRES+ (OOPRES+). Two kinds of subnet reduction rules of OOPRES+ are presented. The preservation of boundedness and liveness of the reduction net system has been investigated to alleviate the problem of state space explosion of OOPRES+. The modeling and analysis of the embedded control system of a smart restaurant is used as an example to verify the effectiveness of the subnet reduction rules. Results obtained can provide an effective way to examine the reduction property of Petri net systems, and present a powerful means to model and verify the large-scale complex embedded systems.

1. Introduction

With the rapid development of modern information technology, embedded system is undoubtedly one of the most popular technologies at present, and has been widely used in automotive electronics, smart home, smart medical, aerospace and other fields. In order to improve the design efficiency and reliability of embedded systems, it is necessary to conduct formal modeling and analysis of embedded systems.
In terms of embedded system modeling methods, traditional modeling methods mostly use informal modeling methods, which can basically describe the functional properties of the system, but it is not easy to strictly verify by mathematical methods. The formal method describes the properties of the system with symbols and mathematical language, and can describe and verify the system in a systematic way []. The formal modeling methods widely used mainly include: extended finite state machine method [], data flow diagram method [], Petri net method [], entity-relationship diagram method, etc. These formal modeling methods describe the characteristics of embedded systems from different aspects, but do not form a unified standard.
Aiming at the problem of formal modeling and verification analysis of embedded systems, a solution is proposed using the object-oriented PRES+ (OOPRES+) reduction operations in this paper. The preservation of liveness and boundedness of the reduction net system has been investigated to alleviate the problem of state space explosion of OOPRES+. Results obtained can provide a powerful means to model and verify the large-scale complex embedded systems.

3. Basic Concepts

In this section, we propose some related concepts of OOPRES+.
Definition 1.
A PRES+ model is N = P , T , I , O , M , where P = p 1 , p 2 , , p m is a non-empty finite set of places, T = t 1 , t 2 , t n is a non-empty finite set of transitions, I P × T is a non-empty finite set of input arcs, O T × P is a non-empty finite set of output arcs. M is a marking, which indicates the distribution of tokens in the place. k = v , r   is a token, where v is the token value, and r is the token time.
Figure 1 shows an example of the PRES+ model. For the example, in Figure 1, P = p 1 , p 2 , p 3 , p 4 , p 5 , T = t 1 , t 2 , t 3 , t 4 , t 5 , I = p 1 , t 1 , p 1 , t 2 , p 2 , t 3 , p 3 , t 3 , p 4 , t 4 ,   p 5 , t 5 , O = t 1 , p 2 , t 2 , p 3 , t 3 , p 4 , t 3 , p 5 , t 4 , p 1 , t 5 , p 1 , M 0 is the initial marking, M 0 p 1 = 2 , 0 , M 0 p 2 = M 0 p 3 = M 0 p 4 = M 0 p 5 = .
Figure 1. An example of PRES+ model.
Definition 2.
For every transition t T , there exists a transition function f , i.e., f : τ p 1 × τ p 2 × × τ p a τ q , where τ is a type function that associates with every place, where · t = p 1 , p 2 , , p a , q t .
Definition 3.
For every transition t T , there exists a minimum transition delay a and a maximum transition delay b , both of which are non-negative real numbers and a b , where a and b represent the lower and upper bounds on the execution time of the transition function associated with the transition t .
In Figure 1, the transition functions associated with the transitions t 1 , t 2 , t 3 , t 4 , t 5 are f 1 , f 2 , f 3 , f 4 , f 5 , and the transition delays are a 1 , b 1 , a 2 , b 2 , a 3 , b 3 , a 4 , b 4 , a 5 , b 5 , respectively.
Definition 4.
An OOPRES+ subnet is a six-tuple S N = P , T , I , O , W , Q , where P = p 1 , p 2 , , p m is a non-empty finite set of places, denoted by S N P ; T = t 1 , t 2 , , t n is a non-empty finite set of transitions, denoted by S N T , and for each transition t , there exists a transition function and transition time delay corresponding to it; I P × T Q × T is the input arc set; O T × P T × Q is the output arc set; W is the weight function, which defines the weight size on the flow relationship, and the default value is 1; Q = q 1 , q 2 , , q s is the set of message places, denoted by S N Q .
The message place that receives messages from the subnet and transmits them to the gateway is called the output place (denoted by Q O ), and the message place that receives the messages from the gateway and transmits them to the subnet is called the input place (denoted by Q I ).
Figure 2 shows an example of the OOPRES+ subnet, where P = p 1 , p 2   , T = t 1 , t 2 , t 3 , t 4 , t 5 ,   I = q 1 , t 1 , q 1 , t 2 , p 1 , t 3 , p 1 , t 4 , p 2 , t 5 ,   O = { t 1 , p 1 , t 2 , p 1 , t 3 , p 2 ,   t 4 , p 2 , t 5 , q 2 } , M 0 is the initial marking, M 0 p 1 , M 0 p 2 = M 0 q 1 = M 0 q 2 = ,   Q = q 1 ,   q 2 , where q 1 is the input message place and q 2 is the output message place.
Figure 2. An example of OOPRES+ subnet.
Definition 5.
An OOPRES+ net is a four-tuple  Σ = N , F , G , M , where  N = S N 1 , S N 2 , , S N m is the subnet set of OOPRES+ (where the place set, the transition set, and the messages place set are denoted by N P , N T , and N Q , respectively.); F is the flow relation between subnets and gateways, including two parts F I and F O , where F I Q × G , F O G × Q ; G = g 1 , g 2 , , g S is a set of gateways; M is the system making, and the initial marking is M 0 .
Definition 6.
Let Σ = N , F , G , M be an OOPRES+ net system with M R M 0 , and M 0 is the initial marking.
(i)
For transition t T , if  · t Q , then  t  is said to be enabled under M ,  if and only if
p P : M p W p , t
q Q : M q W q , t
(ii)
For  t T , if  · t Q = , then  t  is said to be enabled under  M , if and only if it satisfies formula (2).
(iii)
The system marking changes after the firing of transition  t :  M M , where
M p = M p W p , t                                         p ϵ · t t ·   M p + W t , p                                           p ϵ t · · t     M p W p , t + W t , p   p ϵ · t   t · M p                                                                                       e l s e               M q = M q W q , t                                                 q ϵ · t                   M q + W t , q                                                 q ϵ t ·                     M q                                                                                       e l s e                  
Definition 7.
Let an OOPRES+ net system be  Σ = N , F , G , M 0 , with    M 0  as the initial marking and  t N t , then
(i)
A transition  t  is said to be live if for every  M R M 0 , there exists  M R M , such that  M [ t > .
(ii)
An OOPRES+ net system  Σ  is said to be live if, for system  Σ ,  t N T ,  t  is live.
Definition 8.
Let an OOPRES+ net system be Σ = N , F , G , M 0 , and M 0 the initial marking, p N P , q N Q , then
(i)
A place p is said to be bounded if there exists a positive integer K such that M R M 0 , M p K . A message place q is said to be bounded if there exists a positive integer B such that M R M 0 , M q B .
(ii)
An OOPRES+ net system Σ is said to be bounded if, for a system Σ , p N P and q N Q , p and q are bounded.

4. Subnet Reduction Rules and Property Analysis of OOPRES+

In this section, we present two internal subnet reduction rules of the OOPRES+ net system, and propose the necessary and sufficient conditions for the reduced OOPRES+ net systems to preserve liveness and boundedness.

4.1. Q-Type Internal Subnet Reduction

In this section, we will introduce the Q-type internal subnet reduction rule of the OOPRES+. Figure 3 is an example of this reduction rule.
Figure 3. An example of Q-type internal subnet reduction rule.
Definition 9.
Let S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 be a subnet of OOPRES+ net system Σ = N , F , G , M . S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is called a Q-type internal subnet of S N 1 , if and only if the following conditions are satisfied.
(i)
P 1 P 1 , T 1 T 1 , Q 1 Q 1 ,   a n d   P 1 , T 1 , Q 1 ;
(ii)
I 1 = I 1 P 1 × T 1 Q 1 × T 1 , a n d   O 1 = O 1 T 1 × P 1 T 1 × Q 1 ;
(iii)
· T 1 T 1 · P 1 Q 1 ;
(iv)
{ q i n , q o u t } Q 1 , where q i n is the only input message place of S 1 and q o u t is the only output message place of S 1 .
For the transition set   N T 1 of Q-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 , there exists the transition function f T 1 . Take Figure 3 as an example. Transitions t 2 , t 4 , and t 6 are sequence relations. Transitions t 3 , t 5 , and t 6 are sequence relations. Transition sets t 2 , t 4 and t 3 , t 5 are parallel relations. So, f T 1 = f 2 f 4 | | ( f 3 f 5 ) f 6 (where the symbol represents compound operation, and | | represents parallel operation).
For the transition set N T 1 of Q-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 , there exists a minimum transition time delay a T 1 and a maximum transition time delay b T 1 , both of which are non-negative real numbers and satisfy a T 1 b T 1 . Take Figure 3 as an example. Transitions t 2 , t 4 , and t 6 are sequence relations. Transitions t 3 , t 5 , and t 6 are sequence relations. Transition sets t 2 , t 4 and t 3 , t 5 are parallel relations. So, a T 1 = max ( a 2 + a 4 , a 3 + a 5 ) + a 6 , b T 1 = max ( b 2 + b 4 , b 3 + b 5 ) + b 6 .
Based on the transition function of the transition set N T 1 , the transition time delay, and the token information in the input place q i n , the token information in the output place q o u t can be calculated.
Definition 10.
(Q-type internal subnet reduction rule) Suppose S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is a subnet of OOPRES+ net system Σ = N , F , G , M . Let the reduced subnet S N 2 = P 2 , T 2 , I 2 , O 2 , W 2 , Q 2 be obtained from using message place q ˜ to replace the internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of S N 1 where,
(i)
P 2 = P 1 P 1 ;
(ii)
T 2 = T 1 T 1 ;
(iii)
Q 2 = Q 1 Q 1 + q ˜ ;
(iv)
I 2 = I 1 P 2 × T 2 Q 2 × T 2 q ˜ × q o u t · ;
(v)
O 2 = O 1 T 2 × P 2 T 2 × Q 2 · q i n × q ˜ ;
(vi)
The token information in q ˜ is the same as the token information in q o u t .
Supposition 1.
In the OOPRES+ net system Σ = N , F , G , M , suppose that each transition of the Q-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is live and each place of S 1 is bounded.
Theorem 1.
Let OOPRES+ net system Σ = N , F , G , M be obtained from Σ = N , F , G , M by reducing the Q-type internal-subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of the subnet S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of Σ . Then Σ = N , F , G , M is bounded if and only if Σ = N , F , G , M is bounded.
Proof. 
(If) since Σ = N , F , G , M is bounded, then p N P , there exists a positive integer K 0 such that M R M 0 , M p K 0 , and q N Q , there exists a positive integer B 0 such that M R M 0 , M q B 0 . Obviously, there exist positive integers K 1 and B 1 , such that p N P S N 1 P 1 ,     M N P S N 1 P 1 p K 1 ,   q N Q S N 1 Q 1 ,   M N Q S N 1 Q 1 q B 1 (where M N P S N 1 P 1 is the vector after removing the relevant component of P 1 of M , and M N Q S N 1 Q 1 ) is the vector after removing the relevant component of Q 1 of M ). Similarly, there exist positive integers K 2   and B 2 , such that p S N 1 P 1 ,   M S N 1 P 1 p K 2 ,   q S N 1 Q 1 ,     M S N 1 Q 1 q B 2 . By Definition 10, p S N 2 P 2 ,   M S N 2 P 2 p K 2 ,   q S N 2 Q ,   M S N 2 Q 2 q B 2 . Let K = max K 1 , K 2 ,   B = max B 1 , B 2 , then p N P such that M R M 0 : M p K ; q N Q such that M R M 0 : M q B .
(Only-if) Since Σ = N , F , G , M is bounded, according to Definition 10, the remaining places of the net system Σ = N , F , G , M are bounded by removing the Q-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 . By Supposition 1, the Q-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is bounded. So, the net system Σ = N , F , G , M is bounded.  □
Theorem 2.
Let OOPRES+ net system Σ = N , F , G , M be obtained from Σ = N , F , G , M by reducing the Q-type internal-subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of the subnet S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of Σ . Then Σ = N , F , G , M is live if and only if Σ = N , F , G , M is live.
Proof. 
(If) since Σ = N , F , G , M is live, then   t N T , t is live. Since N T S 1 T 1 N T , t N T S 1 T 1 , then t is live. It can be seen that after removing the internal subnet S 1 from   Σ = N , F , G , M , the system is still live. According to Definition 10, t S N 2 T 2 , t is live. Thus, the net system Σ = N , F , G , M is live.
(Only-if) Since the net system Σ = N , F , G , M is live, according to Definition 10, the token information in q ˜ is the same as that in q o u t . By Supposition 1, each transition of the Q-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is live, therefore, the net system Σ = N , F , G , M is live.  □
Note that in the subnet S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of the net system Σ = N , F , G , M , if there are multiple Q-type internal subnets, as long as these internal subnets do not have the same pre-set and post-set, the above Q-type internal subnet reduction rule can still be used to reduce the net system and preserve the boundedness and liveness of the original net system.
Corollary 1.
Suppose S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is a subnet of the net system Σ = N , F , G , M . In S N 1 , there exists a Q-type internal subnet set S 11 , S 12 , , S 1 k , where · S 1 i · S 1 j = , S 1 i · S 1 j · = (where i , j = 1 , 2 , , k ,   i j ). Let Σ = N , F , G , M be obtained from Σ = N , F , G , M using Q-type internal subnet reduction rule to reduce the Q-type internal subnet set S 11 , S 12 , , S 1 k of S N 1 , then Σ = N , F , G , M is bounded and live if and only if Σ = N , F , G , M is bounded and live.
For the subnet set S N 1 , S N 2 , , S N m of the net system Σ = N , F , G , M , if these subnets do not have the same pre-set and post-set between them, and there are multiple disjoint Q-type internal subnets in each subnet, the net system Σ = N , F , G , M can be reduced using the Q-type internal subnet simplification rule, and the boundedness and liveness of the original net system can still be preserved.
Corollary 2.
Suppose S N 1 , S N 2 , , S N m is a subnet set of the OOPRES+ net system Σ = N , F , G , M , where · S N i · S N j = , S N i · S N j · = (where i , j = 1 , 2 , , m ,   i j ). There exists a Q-type internal subnet set S i 1 , S i 2 , , S i l of S N i   i = 1 , 2 , , m , where · S i u · S i v = ,   S i u · S i v · = (where u , v = 1 , 2 , , l ,   u v ). Let Σ = N , F , G , M be obtained from Σ = N , F , G , M using Q-type internal subnet reduction rule to reduce the Q-type internal subnet set of S N 1 , S N 2 , , S N m , then Σ = N , F , G , M is bounded and live if and only if Σ = N , F , G , M is bounded and live.

4.2. TQ-Type Internal Subnet Reduction

In this section, we will introduce the TQ-type subnet reduction rule of the OOPRES+. Figure 4 is an example of this reduction rule.
Figure 4. An example of TQ- type internal subnet reduction rule.
Definition 11.
Let S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 be a subnet of OOPRES+ net system Σ = N , F , G , M . S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is called a TQ-type internal subnet of S N 1 , if and only if the following conditions are satisfied.
  • P 1 P 1 , T 1 T 1 , Q 1 Q 1 , a n d   P 1 , T 1 , Q 1 ;
  • I 1 = I 1 P 1 × T 1 Q 1 × T 1 ;
  • O 1 = O 1 T 1 × P 1 T 1 × Q 1 ;
  • · P 1 P 1 · · Q 1 Q 1 · T 1 ;
  • { t i n , t o u t } T 1 , where t i n is the only input transition and t o u t is the only output transition.
For the transition set   T 1 of TQ-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 , there exists the transition function f T 1 . Take Figure 4 as an example. Transitions t 2 and t 4 are parallel relations. Transitions t 3 and t 5 are parallel relations. Transition sets t 1 , t 3 , t 5 , t 6 , t 9 and t 1 , t 3 , t 5 , t 6 , t 9 are sequence relations. So, f T 1 = f 1 { f 2 f 4 || f 3 f 5 f 6 } || f 7 f 8 f 9 .
For the transition set T 1   of TQ-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 , there exists a minimum transition time delay a T 1 and a maximum transition time delay b T 1 , both of which are non-negative real numbers and satisfy a T 1 b T 1 . Take Figure 4 as an example. Transitions t 2 and t 4 are parallel relations. Transitions t 3 and t 5 are parallel relations. Transition sets t 1 , t 3 , t 5 , t 6 , t 9 and t 1 , t 3 , t 5 , t 6 , t 9 are sequence relations. So, a T 1 = a 1 + max ( a 7 + a 8 ,   max a 2 + a 4 , a 3 + a 5 + a 6 ) + a 9 , b T 1 = b 1 + max ( b 7 + b 8 + max ( b 2 + b 4 , b 3 + b 5 ) + b 6 ) + b 9 .
Definition 12.
(TQ-type internal subnet reduction rule) Suppose S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is a subnet of OOPRES+ net system Σ = N , F , G , M . Let the reduced subnet S N 2 = P 2 , T 2 , I 2 , O 2 , W 2 , Q 2 be obtained from S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 using transition t ˜ to replace the TQ-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of S N 1 where,
(i)
P 2 = P 1 P 1 ;
(ii)
T 2 = T 1 T 1 + t ˜ ;
(iii)
Q 2 = Q 1 Q 1 ;
(iv)
I 2 = ( I 1 { ( P 2 × T 2 ) Q 2 × T 2 } ) · t i n × t ˜ ;
(v)
O 2 = ( O 1 { ( T 2 × P 2 )  T 2 × Q 2 })  t ˜ × t o u t · ;
(vi)
f t ˜ = f T 1 ;
(vii)
a t ˜ = a T 1 ,  b t ˜ = b T 1 .
Supposition 2.
In the OOPRES+ net system Σ = N , F , G , M , suppose that each transition of the TQ-type internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is live and each place of S 1 is bounded.
Theorem 3.
Let OOPRES+ net system Σ = N , F , G , M be obtained from Σ = N , F , G , M by reducing the TQ-type internal-subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of the subnet S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of Σ . Then Σ = N , F , G , M is bounded if and only if Σ = N , F , G , M is bounded.
Proof. 
(If) since Σ = N , F , G , M is bounded, then p N P , there exists a positive integer K 0 such that M R M 0 , M p K 0 , and q N Q , there exists a positive integer B 0 such that M R M 0 , M q B 0 . Obviously, there exist positive integers K 1 ,   B 1 , such that p N P S N 1 P 1 ,   M N P S N 1 P 1 p K 1 ,   q N Q S N 1 Q 1 ,   M N Q S N 1 Q 1 q B 1 ( M N P S N 1 P 1 is the vector after removing the relevant component of P 1 of M , and M N Q S N 1 Q 1 is the vector after removing the relevant component of Q 1 of M ). According to Definition 12, N P = N P SN 1 P 1 and N Q = N Q SN 1 Q 1 . Thus, p N P , M N P p K 1 , q N Q , M N Q q B 1 .
(Only-if) Since Σ = N , F , G , M is obtained from Σ = N , F , G , M using the TQ- type internal subnet rule to reduce the TQ-type internal subnet of S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 , according to Definition 12, N P = N P S N 1 P 1 and N Q = N Q S N 1 Q 1 . By Supposition 2, S N 1 P 1 and S N 1 Q 1 are bounded. Since Σ = N , F , G , M is bounded, then both N P and N Q are bounded. Therefore, both N P and N Q are bounded. In summary, the OOPRES+ net system Σ = N , F , G , M is bounded.  □
Theorem 4.
Let OOPRES+ net system Σ = N , F , G , M be obtained from Σ = N , F , G , M by reducing the TQ-type internal-subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of the subnet S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of Σ . Then Σ = N , F , G , M is live if and only if Σ = N , F , G , M is live.
Proof 
(If) Since   Σ = N , F , G , M is live, then t N T , t is live. Since N T S 1 T 1 N T , then t N T S 1 T 1 , t is live. According to Supposition 2, in the net system Σ = N , F , G , M , each transition of the TQ-type sub-internet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is live. By Definition 12, f t ˜ = f T 1 , a t ˜ = a T 1 , and b t ˜ = b T 1 , therefore, t ˜ is live. Since N T = N T S 1 T 1 t ˜ , then t N T , t is live, i.e., the net system Σ = N , F , G , M is live.
(Only-if) Since Σ = N , F , G , M is live, then   t ˜ is live. According to Definition 12, f t ˜ = f T 1 , a t ˜ = a T 1 , b t ˜ = b T 1 . By Supposition 2, it follows that in Σ = N , F , G , M , each transition of S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is live. Since the net system Σ = N , F , G , M is obtained from Σ = N , F , G , M using the TQ- type internal subnet reduction rule to replace the transition t ˜ with the internal subnet S 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 , then the net system Σ = N , F , G , M is live.  □
Note that in the subnet S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 of the net system Σ = N , F , G , M , if there are multiple TQ-type internal subnets, as long as these internal subnets do not have the same pre-set and post-set, the above TQ-type internal subnet reduction rule can still be used to reduce the net system and preserve the boundedness and liveness of the original net system.
Corollary 3.
Suppose S N 1 = P 1 , T 1 , I 1 , O 1 , W 1 , Q 1 is a subnet of the net system Σ = N , F , G , M . In S N 1 there exists a TQ-type internal subnet set S 11 , S 12 , , S 1 k , where · S 1 i · S 1 j = , S 1 i · S 1 j · = (where i , j = 1 , 2 , , k ,   i j ). Let Σ = N , F , G , M be obtained from Σ = N , F , G , M using TQ-type internal subnet reduction rule to reduce the TQ-type internal subnet set S 11 , S 12 , , S 1 k of S N 1 , then Σ = N , F , G , M is bounded and live if and only if Σ = N , F , G , M is bounded and live.
Further, for the subnet set S N 1 , S N 2 , , S N m of the net system Σ = N , F , G , M , if these subnets do not have the same pre-set and post-set between them, and there are multiple disjoint TQ-type internal subnets in each subnet, the net system Σ = N , F , G , M can be reduced using the TQ-type internal subnet reduction rule, and the boundedness and liveness of the original net system can still be preserved.
Corollary 4.
Suppose S N 1 , S N 2 , , S N m is a subnet set of the OOPRES+ net system Σ = N , F , G , M , where · S N i · S N j = , S N i · S N j · = (where i , j = 1 , 2 , , m ,   i j ). There exists a TQ-type internal subnet set S i 1 , S i 2 , , S i l of S N i   i = 1 , 2 , , m , where · S i u · S i v = ,   S i u · S i v · = (where u , v = 1 , 2 , , l ,   u v ). Let Σ = N , F , G , M be obtained from Σ = N , F , G , M using Q-type internal subnet reduction rule to reduce the TQ-type internal subnet set of S N 1 , S N 2 , , S N m , then Σ = N , F , G , M is bounded and live if and only if Σ = N , F , G , M is bounded and live.

5. Application

This section applies the proposed OOPRES+ reduction rules to the modeling and analysis of the embedded control system of a smart restaurant, and verifies the reliability and effectiveness of the proposed reduction rules.
In the following, an OOPRES+ is applied to model and analyze a smart restaurant embedded control system. Figure 5 shows the net system OOPRES+ model Σ = N , F , G , M of this embedded control system. The four control modules of reservation, meal dispensing, purchasing and decision making are modeled as object subnet systems S N 1   , S N 2 , S N 3 , S N 4 , respectively.
Figure 5. Embedded control system model of a smart restaurant Σ = N , F , G , M .
In Figure 5, t 1 : request restaurant data; t 2 : obtain display data; t 3 : submit meal data; t 4 : submit evaluation data; t 5 : complete data upload; t 6 : submit meal preparation data; t 7 : complete data upload;   t 8 : make production plans; t 9 : request inventory data; t 10 : obtain inventory data; t 11 : submit raw material data; t 12 : submit inventory transfer data;   t 13 : complete data upload; t 14 : submit recipe data; t 15 : complete data upload; t 16 : request to obtain purchase data; t 17 : obtain purchase data; t 18 : submit order data;   t 19 : complete data upload;   t 20 : request purchase data; t 21 : obtain procurement data; t 22 : upload costing data; t 23 : request access to evaluation data; t 42 : obtain evaluation data; t 25 : submit feedback data; t 26 : complete evaluation data upload; t 27 : complete procurement data upload. g i : gateway; f i : the transition function of the corresponding transition; a i , b i : the transition time delay of the corresponding transition. By Definitions 7 and 8, the net system Σ = N , F , G , M is bounded and live.
As shown in Figure 6, the Q-type internal subnet (generated by { p 17 , t 21 , t 22 , q 11 , q 12 }) of S N 1 of the OOPRES+ net system model Σ = N , F , G , M is reduced to the message place q ˜ , and then the reduced net system Σ 1 = N 1 , F 1 , G 1 , M 1 is obtained. It is easy to see that each place of this Q-type internal subnet is bounded and each transition is live. By Theorems 1 and 2, the net system Σ 1 = N 1 , F 1 , G 1 , M 1 is bounded and live if and only if Σ = N , F , G , M is bounded and live.
Figure 6. Σ 1 = N 1 , F 1 , G 1 , M 1 obtained using the Q-type internal subnet reduction rule.
As shown in Figure 7, the TQ-type internal-subnet (generated by { p 2 , p 3 , p 4 , t 1 , t 2 , t 3 , t 4 , t 5 } of S N 1 , the TQ-type internal subnet (generated by { p 6 , p 7 , p 8 , p 9 ,   p 10 , p 11 , p 12 , t 6 , t 7 , t 8 , t 9 ,   t 10 , t 11 , t 12 , t 13 , t 14 , t 15 , q 5 , q 6 }) of S N 2 , the TQ-type internal subnet (generated by { p 14 , p 15 ,   p 16 , t 16 , t 17 , t 18 , t 19 }) of S N 3 , and the TQ-type internal subnet (generated by { p 18 , p 19 , p 20 , t 23 ,   t 24 , t 25 , t 26 }) of S N 4 of the OOPRES+ net system model Σ 1 = N 1 , F 1 , G 1 , M 1 are reduced to the transitions t 28 , t 29 , t 30 , and t 31 , respectively, and then the reduced net system Σ 2 = N 2 , F 2 , G 2 , M 2 is obtained. It is easy to know that each place of the above four the TQ-type internal subnets is bounded and each transition is live. Since the above the TQ-type internal subnet reductions satisfy the conditions of Theorems 3 and 4, it is easy to see that the net system Σ 2 = N 2 , F 2 , G 2 , M 2 is bounded and live if and only if Σ 1 = N 1 , F 1 , G 1 , M 1 is bounded and live.
Figure 7. Σ 2 = N 2 , F 2 , G 2 , M 2 obtained using the TQ-type internal subnet reduction rule.
Note that, the boundedness and liveness of the OOPRES net system Σ = N , F , G , M , Σ 1 = N 1 , F 1 , G 1 , M 1 and Σ 2 = N 2 , F 2 , G 2 , M 2 in Figure 5, Figure 6 and Figure 7 can also be verified by the modeling tool software Tina 3.7.0. (Tina 3.7.0 is a simulation tool used only for simulation analysis and viewing property analysis results.) The verification of boundedness and liveness of the original OOPRES+ net system and the reduced OOPRES+ net system can be seen from Figure 8, Figure 9, Figure 10 and Figure 11.
Figure 8. The original smart restaurant model Σ = N , F , G , M   in Tina.
Figure 9. Verification result of the boundedness and liveness of Σ = N , F , G , M .
Figure 10. The reduced smart restaurant model Σ 2 = N 2 , F 2 , G 2 , M 2 in Tina.
Figure 11. Verification result of the boundedness and liveness of Σ 2 = N 2 , F 2 , G 2 , M 2 .
It can be seen from Figure 9 and Figure 11 that the original smart restaurant OOPRES+ model and the reduced OOPRES+ model are all bounded and live.
In summary, the original OOPRES+ net system is reduced by using the Q-type internal subnet reduction rule and the TQ-type internal subnet reduction rule. Some sufficient and necessary conditions for the reduction rules given in this paper can make the target network system keep the boundedness and liveness of the original network system unchanged, so that the boundedness and liveness of the original network system can be studied with the reduced net system, and the purpose of studying the large system with the small system can be achieved, so as to alleviate the “state space explosion” problem of the OOPRES+ net system.

6. Conclusions

Aiming at the problem of formal modeling and verification analysis of embedded systems, this paper presents two internal-subnet reduction rules of an object-oriented PRES+ (OOPRES+), and investigates the problem of preserving the liveness and boundedness of the reduction operation. This paper proposes certain necessary and sufficient conditions for the reduction operation to preserve the boundedness and liveness of the original net system, and applies these reduction rules to the modeling and analysis of the intelligent restaurant embedded control system. The research results of this paper will provide a new way for the analysis of large-scale complex embedded system model.
The next research work is to give broader conditions and investigate the preservation of other important properties (such as timing, reachability, and functionality) of the reduction operations of OOPRES+.

Author Contributions

Conceptualization, C.X. and Y.S.; methodology, C.X.; validation, C.X., Y.S. and B.S.; formal analysis, C.X. and Y.S.; investigation, C.X. and B.S.; resources, C.X.; writing—original draft preparation, C.X.; writing—review and editing, Y.S. and M.G.; visualization, B.S.; supervision, C.X.; project administration, C.X.; funding acquisition, C.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Foundation of Shandong Province (Grant:ZR2022MF348).

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Marwedel, P. Embedded System Design—Embedded Systems Foundations of Cyber-Physical Systems, and the Internet of Things, 4th ed.; Springer: Cham, Switzerland, 2021. [Google Scholar]
  2. Tausan, N.; Markkula, J.; Kuvaja, P.; Oivo, M. Choreography in the embedded systems domain: A systematic literature review. Inf. Softw. Technol. 2017, 91, 82–101. [Google Scholar] [CrossRef]
  3. Stoutchini, A.; Benini, L. StreamDrive: A dynamic dataflow framework for clustered embedded architectures. J. Signal Process Syst. 2019, 91, 630–640. [Google Scholar]
  4. Ding, Z.; Yang, R.; Cui, P.; Zhou, M.C.; Jiang, C. Variable Petri nets for mobility. IEEE Trans. Syst. Man Cybern. Syst. 2022, 52, 4784–4797. [Google Scholar] [CrossRef]
  5. Weisberg, P.; Wiseman, Y. Efficient memory control for avionics and embedded systems. Int. J. Embed. Syst. 2013, 5, 225–238. [Google Scholar] [CrossRef]
  6. Lenhardt, J.; Schiffmann, W.; Eitschberger, P.; Keller, J. Power-efficient load distribution in heterogeneous computing environments. In Proceedings of the International Conference on Parallel and Distributed Computing and Networks, Innsbruck, Austria, 17–19 February 2014; pp. 239–248. [Google Scholar]
  7. Coronado, E.; Valero, V.; Orozco-Barbosa, L.; Pelayo, F.L. Modeling and simulation of the IEEE 802. 11e wireless protocol with hidden nodes using colored Petri nets. Softw. Syst. Model. Softw. Syst. Model. 2021, 20, 505–538. [Google Scholar]
  8. Bozhenkova, E.N.; Virbitskaite, I.B. Testing equivalences of time Petri nets. Program. Comput. Softw. 2020, 46, 251–260. [Google Scholar] [CrossRef]
  9. Kiaei, I.; Lotfifard, S. Fault section identification in smart distribution systems using multi-source data based on fuzzy Petri nets. IEEE Trans. Smart Grid 2020, 11, 74–83. [Google Scholar] [CrossRef]
  10. Cortés, L.A.; Eles, P.; Peng, Z. Modeling and Formal Verification of Embedded Systems Based on A Petri Net Based Representation. J. Syst. Archit. 2003, 49, 571–598. [Google Scholar] [CrossRef]
  11. Ahmed, A.; Koutny, M. Pietkiewicz-Koutny. Synthesising elementary net systems with localities. Theor. Comput. Sci. 2022, 908, 123–140. [Google Scholar]
  12. Rostock, U.; Informatik, I.F.; Informatik, T. Synthesis of Petri Nets with Restricted Place-Environments: Classical and Parameterized. In Application and Theory of Petri Nets and Concurrency. PETRI NETS 2021; Buchs, D., Carmona, J., Eds.; LNCS 12734; Springer: Cham, Switzerland, 2021; pp. 292–311. [Google Scholar]
  13. Liu, G.; Li, P.; Li, Z.; Wu, N. Robust deadlock control for automated manufacturing systems with unreliable resources based on Petri net reachability graphs. IEEE Trans. Syst. Man Cybern. Syst. 2018, 49, 1371–1385. [Google Scholar] [CrossRef]
  14. Hu, H.; Su, R.; Zhou, M.C.; Liu, Y. Polynomially complex synthesis of distributed supervisors for large-scale AMSs using Petri nets. IEEE Trans. Control Syst. Technol. 2016, 24, 1610–1622. [Google Scholar] [CrossRef]
  15. Xia, C.; Li, C. Property preservation of Petri synthesis net based representation for embedded systems. IEEE/CAA J. Autom. Sin. 2021, 8, 905–915. [Google Scholar] [CrossRef]
  16. Berthomieu, B.; Botlan, D.L.; Zilio, S.D. Counting Petri net markings from reduction equations. Int. J. Softw. Tools Technol. Transf. 2020, 22, 163–181. [Google Scholar] [CrossRef]
  17. Berthomieu, B.; Botlan, D.L.; Zilio, S.D. Petri net reductions for counting markings. In SPIN 2018; Gallardo, M.M., Merino, P., Eds.; Springer: Cham, Switzerland, 2018; LNCS 10869; pp. 65–84. [Google Scholar]
  18. Ceška, M.; Haša, L.; Vojnar, T. Partial-order reduction in model checking object-oriented Petri nets. In Computer Aided Systems Theory—EUROCAST 2003; Moreno-Díaz, R., Pichler, F., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; pp. 265–278. [Google Scholar]
  19. Shah, S.A.; Bohez, E.L.; Shah, K.; ul Haq, I.; Azam, K.; Anwar, S. Colored Petri net model for significant reduction of invariants in flexible manufacturing systems. Int. J. Adv. Manuf. Technol. 2017, 88, 1775–1787. [Google Scholar]
  20. MChiachío; Saleh, A.; Naybour, S.; Chiachío, J.; Andrews, J. Reduction of Petri net maintenance modeling complexity via Approximate Bayesian Computation. Reliab. Eng. Syst. Saf. 2022, 222, 108365. [Google Scholar]
  21. Bønneland, F.M.; Dyhr, J.; Jensen, P.G.; Johannsen, M.; Srba, J. Stubborn versus structural reductions for Petri nets. J. Log. Algebraic Methods Program. 2019, 102, 46–63. [Google Scholar] [CrossRef]
  22. Xia, C. Reduction rules for Petri Net based representation for embedded systems. J. Front. Comput. Sci. Technol. 2008, 2, 614–626. [Google Scholar]
  23. Xia, C.; Zhang, W.; Wang, Z. Reduction rules for Petri net with inhibitor arcs based representation for embedded systems. In Proceedings of the 2019 International Conference on Computer Science, Communications and Big Data (CSCBD 2019), Beijing, China, 24–25 March 2019; pp. 408–413. [Google Scholar]
  24. Li, B.; Khlif-Bouassida, M.; Toguyéni, A. Reduction rules for diagnosability analysis of complex systems modeled by labeled Petri nets. IEEE Trans. Autom. Sci. Eng. 2020, 17, 1061–1069. [Google Scholar] [CrossRef]
  25. Bernardinello, L.; Lomazova, I.; Nesterov, R.; Pomello, L. Property-preserving transformations of elementary net systems based on morphisms. In Transactions on Petri Nets and Other Models of Concurrency XVI; Koutny, M., Kordon, F., Moldt, D., Eds.; Springer: Berlin/Heidelberg, Germany, 2022; LNCS 13220; pp. 1–23. [Google Scholar]
  26. Xia, C.; Wang, Z.; Wang, Z. The refinement of Petri net with inhibitor arcs based representation for embedded systems. Electronics 2022, 11, 1389. [Google Scholar] [CrossRef]
  27. Kaid, H.; Al-Ahmari, A.; Li, Z. Ameen. An improved synthesis method based on ILPP and colored Petri net for liveness enforcing controller of flexible manufacturing systems. IEEE Access 2022, 10, 68570–68581. [Google Scholar]
  28. Xia, C. Property preservation of refinement for Petri net based representation for embedded systems. Clust. Comput. 2016, 19, 1373–1384. [Google Scholar] [CrossRef]
  29. Wang, S.; You, D.; Zhou, M.; Seatsu, C. Characterization of admissible marking sets in Petri nets with uncontrollable transitions. IEEE Trans. Autom. Control. 2016, 61, 1953–1958. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.