![]() |
helics
2.8.1
|
#include <TimeDependencies.hpp>
class for managing a set of dependencies
|
default |
default constructor
int helics::TimeDependencies::activeDependencyCount | ( | ) | const |
get a count of the active dependencies
Referenced by helics::ForwardingTimeCoordinator::dependencyCount(), and helics::TimeCoordinator::dependencyCount().
bool helics::TimeDependencies::addDependency | ( | global_federate_id | id | ) |
insert a dependency into the structure
Referenced by helics::ForwardingTimeCoordinator::addDependency(), and helics::TimeCoordinator::addDependency().
bool helics::TimeDependencies::addDependent | ( | global_federate_id | id | ) |
update the info about a dependency based on a message
Referenced by helics::ForwardingTimeCoordinator::addDependent(), and helics::TimeCoordinator::addDependent().
|
inline |
iterator to first dependency
Referenced by helics::ForwardingTimeCoordinator::disconnect(), helics::TimeCoordinator::disconnect(), and helics::TimeCoordinator::localError().
|
inline |
const iterator to first dependency
|
inline |
const iterator to first dependency
|
inline |
const iterator to first dependency
bool helics::TimeDependencies::checkIfReadyForExecEntry | ( | bool | iterating | ) | const |
check if the dependencies would allow entry to exec mode
References helics::iterating.
Referenced by helics::ForwardingTimeCoordinator::checkExecEntry(), and helics::TimeCoordinator::checkExecEntry().
bool helics::TimeDependencies::checkIfReadyForTimeGrant | ( | bool | iterating, |
Time | desiredGrantTime | ||
) | const |
check if the dependencies would allow a grant of the time
iterating | true if the object is iterating |
desiredGrantTime | the time to check for granting |
References helics::iterating.
Referenced by helics::TimeCoordinator::checkTimeGrant().
|
inline |
check if there are no dependencies
Referenced by helics::TimeCoordinator::checkTimeGrant(), helics::ForwardingTimeCoordinator::disconnect(), helics::TimeCoordinator::disconnect(), helics::ForwardingTimeCoordinator::empty(), helics::TimeCoordinator::localError(), and helics::TimeCoordinator::timeRequest().
|
inline |
iterator to end point
|
inline |
const iterator to end point
DependencyInfo * helics::TimeDependencies::getDependencyInfo | ( | global_federate_id | id | ) |
get a pointer to the dependency information for a particular object
const DependencyInfo * helics::TimeDependencies::getDependencyInfo | ( | global_federate_id | id | ) | const |
get a pointer to the dependency information for a particular object
Referenced by helics::TimeCoordinator::addDependency(), helics::ForwardingTimeCoordinator::getDependencyInfo(), helics::TimeCoordinator::processTimeMessage(), and updateTime().
global_federate_id helics::TimeDependencies::getMinDependency | ( | ) | const |
get a count of the active dependencies
Referenced by helics::ForwardingTimeCoordinator::getMinDependency(), and helics::TimeCoordinator::getMinDependency().
bool helics::TimeDependencies::hasActiveTimeDependencies | ( | ) | const |
check if there are active dependencies
Referenced by helics::ForwardingTimeCoordinator::hasActiveTimeDependencies(), and helics::TimeCoordinator::hasActiveTimeDependencies().
bool helics::TimeDependencies::isDependency | ( | global_federate_id | ofed | ) | const |
return true if the given federate is already a dependency
Referenced by helics::ForwardingTimeCoordinator::isDependency().
bool helics::TimeDependencies::isDependent | ( | global_federate_id | ofed | ) | const |
return true if the given federate is already a dependent
void helics::TimeDependencies::removeDependency | ( | global_federate_id | id | ) |
remove dependency from consideration
Referenced by helics::ForwardingTimeCoordinator::removeDependency(), and helics::TimeCoordinator::removeDependency().
void helics::TimeDependencies::removeDependent | ( | global_federate_id | id | ) |
remove dependent from consideration
Referenced by helics::ForwardingTimeCoordinator::removeDependent(), and helics::TimeCoordinator::removeDependent().
void helics::TimeDependencies::removeInterdependence | ( | global_federate_id | id | ) |
remove an interdependency from consideration
void helics::TimeDependencies::resetDependentEvents | ( | helics::Time | grantTime | ) |
reset the tdeMin
Referenced by helics::TimeCoordinator::timeRequest().
void helics::TimeDependencies::resetIteratingExecRequests | ( | ) |
reset the iterative exec requests to prepare for the next iteration
Referenced by helics::TimeCoordinator::checkExecEntry().
void helics::TimeDependencies::resetIteratingTimeRequests | ( | helics::Time | requestTime | ) |
reset iterative time requests to prepare for next iteration
requestTime | the time that is being iterated |
|
inline |
get the number of dependencies
Referenced by helics::ForwardingTimeCoordinator::disconnect(), helics::TimeCoordinator::disconnect(), and helics::TimeCoordinator::localError().
bool helics::TimeDependencies::updateTime | ( | const ActionMessage & | m | ) |
update the info about a dependency based on a message
References helics::ActionMessage::action(), helics::ActionMessage::dest_id, getDependencyInfo(), and helics::ActionMessage::source_id.