X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a3a100990355eb757dc81106b5aac6daed0b8e1..649026e94f9b98cafdd7dcbb63dc0ed6f51cea25:/include/xbt/automaton.h diff --git a/include/xbt/automaton.h b/include/xbt/automaton.h index f76712c0f6..8a78ff039a 100644 --- a/include/xbt/automaton.h +++ b/include/xbt/automaton.h @@ -1,5 +1,4 @@ -/* Copyright (c) 2011-2018. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2011-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -8,10 +7,6 @@ #define XBT_AUTOMATON_H #include -#include -#include -#include -#include SG_BEGIN_DECL() @@ -66,7 +61,13 @@ XBT_PUBLIC xbt_automaton_state_t xbt_automaton_state_new(xbt_automaton_t a, int XBT_PUBLIC xbt_automaton_transition_t xbt_automaton_transition_new(xbt_automaton_t a, xbt_automaton_state_t src, xbt_automaton_state_t dst, xbt_automaton_exp_label_t label); -XBT_PUBLIC xbt_automaton_exp_label_t xbt_automaton_exp_label_new(int type, ...); +XBT_PUBLIC xbt_automaton_exp_label_t xbt_automaton_exp_label_new_or(xbt_automaton_exp_label_t left, + xbt_automaton_exp_label_t right); +XBT_PUBLIC xbt_automaton_exp_label_t xbt_automaton_exp_label_new_and(xbt_automaton_exp_label_t left, + xbt_automaton_exp_label_t right); +XBT_PUBLIC xbt_automaton_exp_label_t xbt_automaton_exp_label_new_not(xbt_automaton_exp_label_t exp_not); +XBT_PUBLIC xbt_automaton_exp_label_t xbt_automaton_exp_label_new_predicat(char* p); +XBT_PUBLIC xbt_automaton_exp_label_t xbt_automaton_exp_label_new_one(void); XBT_PUBLIC xbt_dynar_t xbt_automaton_get_states(xbt_automaton_t a); XBT_PUBLIC xbt_dynar_t xbt_automaton_get_transitions(xbt_automaton_t a); XBT_PUBLIC xbt_automaton_transition_t xbt_automaton_get_transition(xbt_automaton_t a, xbt_automaton_state_t src,