![]() |
helics
2.8.1
|
#include <FederateInfo.hpp>
Inheritance diagram for helics::FederateInfo:Public Member Functions | |
| FederateInfo () | |
| FederateInfo (core_type cType) | |
| FederateInfo (const std::string &args) | |
| FederateInfo (int argc, char *argv[]) | |
| FederateInfo (std::vector< std::string > &args) | |
| std::vector< std::string > | loadInfoFromArgs (const std::string &args) |
| std::vector< std::string > | loadInfoFromArgs (int argc, char *argv[]) |
| void | loadInfoFromArgs (std::vector< std::string > &args) |
| void | loadInfoFromArgsIgnoreOutput (const std::string &args) |
| void | loadInfoFromArgsIgnoreOutput (int argc, char *argv[]) |
| void | loadInfoFromToml (const std::string &toml, bool runArgParser=true) |
| void | loadInfoFromJson (const std::string &json, bool runArgParser=true) |
| Time | checkTimeProperty (int propId, Time defVal) const |
| bool | checkFlagProperty (int propId, bool defVal) const |
| int | checkIntProperty (int propId, int defVal) const |
Public Member Functions inherited from helics::CoreFederateInfo | |
| void | setProperty (int propId, double propVal) |
| void | setProperty (int propId, int propVal) |
| void | setProperty (int propId, Time propVal) |
| void | setFlagOption (int flagId, bool propVal=true) |
Public Attributes | |
| int | uniqueKey {0} |
| location for keying the info for application purposes | |
| char | separator {'/'} |
| separator for global name of localFederates | |
| bool | autobroker |
| specify that the core should generate a broker if not found otherwise More... | |
| bool | debugging {false} |
| core_type | coreType {core_type::DEFAULT} |
| the type of the core | |
| int | brokerPort {-1} |
| broker port information | |
| bool | forceNewCore {false} |
| indicator that the federate should not use an existing core | |
| bool | useJsonSerialization {false} |
| std::string | profilerFileName |
| std::string | defName |
| a default name to use for a federate | |
| std::string | coreName |
| the name of the core | |
| std::string | coreInitString |
| an initialization string for the core API object | |
| std::string | brokerInitString |
| an initialization string for the broker if auto generated | |
| std::string | broker |
| connection information for the broker | |
| std::string | key |
| key for the broker | |
| std::string | localport |
| std::string | fileInUse |
| string containing a configuration file that was used | |
Public Attributes inherited from helics::CoreFederateInfo | |
| std::vector< std::pair< int, Time > > | timeProps |
| container for the timeProperties | |
| std::vector< std::pair< int, int > > | intProps |
| container for the integer properties | |
| std::vector< std::pair< int, bool > > | flagProps |
| container for the binary flag options | |
data class defining federate properties and information
| helics::FederateInfo::FederateInfo | ( | ) |
default constructor
References loadInfoFromArgsIgnoreOutput().
|
explicit |
construct from a type
| cType | the type of core to use for the federate |
References coreType, and loadInfoFromArgsIgnoreOutput().
|
explicit |
load a federateInfo object from command line arguments in a string
calls /ref loadInfoFromArgs in the constructor
| args | a string containing the command line arguments |
References loadInfoFromArgsIgnoreOutput().
| helics::FederateInfo::FederateInfo | ( | int | argc, |
| char * | argv[] | ||
| ) |
load a federateInfo object from command line arguments
calls /ref loadInfoFromArgs in the constructor
| argc | the number of arguments |
| argv | an array of char * pointers to the arguments |
References loadInfoFromArgsIgnoreOutput().
|
explicit |
load a federateInfo object from arguments stored in a vector
calls /ref loadInfoFromArgs in the constructor
| [in,out] | args | a vector of arguments to load. The unused arguments will be returned in the vector |
References loadInfoFromArgs().
check if a property has been set and return its value
References helics::CoreFederateInfo::timeProps.
| std::vector< std::string > helics::FederateInfo::loadInfoFromArgs | ( | const std::string & | args | ) |
load a federateInfo object from command line arguments outside the constructor
| args | a string containing the command line arguments |
Referenced by FederateInfo().
| std::vector< std::string > helics::FederateInfo::loadInfoFromArgs | ( | int | argc, |
| char * | argv[] | ||
| ) |
load a federateInfo object from command line arguments outside the constructor
| argc | the number of arguments |
| argv | an array of char * pointers to the arguments |
| void helics::FederateInfo::loadInfoFromArgs | ( | std::vector< std::string > & | args | ) |
load a federateInfo object from command line arguments contained in a vector
| [in,out] | args | a vector of arguments to load. The unused arguments will be returned in the vector |
| void helics::FederateInfo::loadInfoFromArgsIgnoreOutput | ( | const std::string & | args | ) |
load a federateInfo object from command line arguments outside the constructor
| args | a string containing the command line arguments |
Referenced by FederateInfo().
| void helics::FederateInfo::loadInfoFromArgsIgnoreOutput | ( | int | argc, |
| char * | argv[] | ||
| ) |
load a federateInfo object from command line arguments outside the constructor
| argc | the number of arguments |
| argv | an array of char * pointers to the arguments |
| void helics::FederateInfo::loadInfoFromJson | ( | const std::string & | json, |
| bool | runArgParser = true |
||
| ) |
load a federateInfo object from a JSON string either a file or JSON string
| json | a string containing the name of the JSON file or JSON contents |
References loadJson(), and helics::CoreFederateInfo::setProperty().
| void helics::FederateInfo::loadInfoFromToml | ( | const std::string & | toml, |
| bool | runArgParser = true |
||
| ) |
load a federateInfo object from a toml string either a file or toml string
| toml | a string containing the name of the toml file or toml contents |
References loadToml(), and helics::CoreFederateInfo::setProperty().
| bool helics::FederateInfo::autobroker |
specify that the core should generate a broker if not found otherwise
Referenced by helics::generateFullCoreInitString().
| bool helics::FederateInfo::debugging {false} |
specify that the core/federate should operate in a user debugging mode which will turn off some timeouts
Referenced by helics::generateFullCoreInitString().
| std::string helics::FederateInfo::localport |
string for defining the local port to use usually a number but other strings are possible
Referenced by helics::generateFullCoreInitString().
| std::string helics::FederateInfo::profilerFileName |
specify that the federate and associated core should enable profiling to the specified file
Referenced by helics::generateFullCoreInitString().
| bool helics::FederateInfo::useJsonSerialization {false} |
indicate that the federate should use json serialization for all data transfers
Referenced by helics::Federate::Federate(), helics::generateFullCoreInitString(), and helics::ValueFederate::ValueFederate().
1.8.17