1 /* Copyright (c) 2015-2023. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_TRANSITION_OBJECT_ACCESS_HPP
7 #define SIMGRID_MC_TRANSITION_OBJECT_ACCESS_HPP
9 #include "src/mc/transition/Transition.hpp"
11 namespace simgrid::mc {
12 XBT_DECLARE_ENUM_CLASS(ObjectAccessType, ENTER, EXIT, BOTH);
14 class ObjectAccessTransition : public Transition {
15 ObjectAccessType access_type_;
22 ObjectAccessTransition(aid_t issuer, int times_considered, std::stringstream& stream);
23 std::string to_string(bool verbose) const override;
24 bool depends(const Transition* other) const override;
27 } // namespace simgrid::mc