Skip to content
Discussion options

You must be logged in to vote

Yes, simmer implements a set of common policies in C++, but provides an R interface for the general case. Built-in policies are in the internal namespace, because they are not meant to be exposed, and that's why there's no documentation about it. They're here:

class Policy {
typedef Resource* (Policy::*method)(Simulator*, const VEC<std::string>&);
typedef UMAP<std::string, method> MethodMap;
public:
explicit Policy(const std::string& policy) : name(policy), state(new int(-1)),
check_available(policy.find("-available") != std::string::npos)
{
policies["shor…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@ValerCheck
Comment options

@Enchufa2
Comment options

@ValerCheck
Comment options

@ValerCheck
Comment options

@Enchufa2
Comment options

Answer selected by Enchufa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants