pub struct Template {
pub name: String,
pub params: Vec<Param>,
pub declarations: Vec<ProcLocalDecl>,
pub locations: Vec<Location>,
pub init: String,
pub transitions: Vec<Transition>,
}Expand description
A UPPAAL template — the per-PD timed automaton.
Fields§
§name: StringTemplate name (UpperCamelCase).
params: Vec<Param>Formal parameters (<parameter>, a ParameterList).
declarations: Vec<ProcLocalDecl>Template-local declarations: bool/int variables and the auto-generated event functions (one per Fiducia event).
ProcLocalDecl, not GlobalDecl: UTAP admits only variables,
typedefs and functions inside a template (ProcLocalDeclList,
parser.y:786), so the scope rule is carried by the type.
locations: Vec<Location>All locations in the template.
init: StringID of the initial location (must reference one of locations).
transitions: Vec<Transition>Edges between locations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.