ptnet-core 0.1.2

Core types and traits for modeling and simulating Place/Transition nets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*!
This module provides an extension to model structured (hierarchical) nets.

TBD

*/

use crate::net::Net;

// ------------------------------------------------------------------------------------------------
// Public Types
// ------------------------------------------------------------------------------------------------

pub trait StructuredNet: Net {
    fn parent(&self) -> Option<&Self>;
    fn subnets(&self) -> Vec<&Self>;
}