Nothing
#' @title Parse
#'
#' @description Parses a sequence of transitions. If possible returns the Petri Net with the updated marking. Otherwise returns FALSE
#'
#' @param PN A Petri Net
#' @param trace A sequence of transitions, stored in a vector.
#'
#' @export parse_trace
parse_trace <- function(PN, trace) {
if(length(trace) == 0)
return(PN)
for(i in 1:length(trace)) {
if(trace[i] %in% enabled(PN)$id){
PN <- execute(PN, trace[i])
}
else{
return(FALSE)
}
}
return(PN)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.