wrench::ServiceProperty
-
class ServiceProperty
A class that implements the concept of a service property.
Subclassed by wrench::ActionExecutionServiceProperty, wrench::ComputeServiceProperty, wrench::FileRegistryServiceProperty, wrench::HostStateChangeDetectorProperty, wrench::NetworkProximityServiceProperty, wrench::StorageServiceProperty, wrench::XRootD::Property
Public Static Functions
-
static WRENCH_PROPERTY_TYPE addServiceProperty(std::string classname, std::string messagePayload)
add new message to payload map. DO NOT CALL THIS FUNCTION DIRECTLY, use SET_PROPERTY_NAME and DECLARE_PROPERTY_NAME
- Parameters
classname – The class to add the message too
serviceProperty – the name of the service property to add
- Returns
a property type
-
static std::string translatePropertyType(WRENCH_PROPERTY_TYPE serviceProperty)
translate a property ID to a string key
- Parameters
serviceProperty – the ID of the service Property
- Returns
a property type, as a string
-
static WRENCH_PROPERTY_TYPE translateString(std::string serviceProperty)
translate a string key to a property ID
- Parameters
serviceProperty – the name of the service Property to get in classname::serviceProperty form (Note: the classname must be the parent class that defines the property)
- Returns
a property type
-
static WRENCH_PROPERTY_TYPE addServiceProperty(std::string classname, std::string messagePayload)