Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No EnvironmentDescription::hasProperty method #1218

Open
ptheywood opened this issue Aug 12, 2024 · 0 comments
Open

No EnvironmentDescription::hasProperty method #1218

ptheywood opened this issue Aug 12, 2024 · 0 comments

Comments

@ptheywood
Copy link
Member

Unlike AgentDescription, which provides methods to check if an agent description has alreadyu been created a new Varaible by its' string name, Environment does not have a corresponding hasProperty method.

It can be checked with a try catch around a call to getProperty, but a bool returning version would be good for concistency with AgentDescription.

/**
* @param variable_name Name of the variable to check
* @return True when a variable with the specified name exists within the agent
*/
bool hasVariable(const std::string& variable_name) const;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant