Browse Source

Small class for actions

Former-commit-id: 082f5ddddc
tempestpy_adaptions
sjunges 9 years ago
parent
commit
91f8ecf17c
  1. 14
      src/storage/jani/Action.cpp
  2. 25
      src/storage/jani/Action.h

14
src/storage/jani/Action.cpp

@ -0,0 +1,14 @@
#include "src/storage/jani/Action.h"
namespace storm {
namespace jani {
Action::Action(std::string const& name) : name(name) {
// Intentionally left empty.
}
std::string const& Action::getName() const {
return this->name;
}
}
}

25
src/storage/jani/Action.h

@ -0,0 +1,25 @@
#include <string>
#pragma once
namespace storm {
namespace jani {
class Action {
public:
/**
* Creates an action
* @param name name of the action
*/
Action(std::string const& name);
/**
* Returns the name of the location.
*/
std::string const& getName() const;
private:
std::string name;
};
}
}
Loading…
Cancel
Save