#include <client/AuroraClient.h>
Collaboration diagram for Aurora::Client::Service:

Public Member Functions | |
| Service () | |
| ~Service () | |
| bool | SendMessage (double timestamp, Aurora::Common::UInt32 dest, Aurora::Common::UInt32 msg_size, void *msg_data, bool caused=false, double tiebreaker=0) |
| bool | GetNextMessageTimestamp (double ×tamp) |
| bool | GetNextMessageTieBreaker (double &tiebreaker) |
| bool | GetNextMessage (Aurora::Common::UInt32 &msg_size, void *&msg_data) |
| bool | GetNextMessage (double ×tamp, Aurora::Common::UInt32 &msg_size, void *&msg_data) |
| bool | GetNextMessage (Aurora::Common::UInt32 &src, double ×tamp, double &tiebreaker, Aurora::Common::UInt32 &msg_size, void *&msg_data) |
| bool | CanRun (void) |
| void | EndRun (void) |
| void | IncEventCounter (void) |
| double | GetSimTime (void) |
| void | SetSimTime (double sim) |
| double | GetBeginTime (void) |
| double | GetEndTime (void) |
| Aurora::Common::UInt32 | GetLeasedWUNum (void) |
| Aurora::Common::UInt32 | GetNumWUs (void) |
| Aurora::Common::UInt32 | GetFlags (void) |
| std::string | GetCapability (void) |
| std::string | GetArguments (void) |
| std::string | GetRunArgs (void) |
| void | SetRunArgs (std::string args) |
| std::string | GetVersion (void) |
| std::string | GetInputFiles (void) |
| std::string | GetOutputFiles (void) |
| std::string | GetProgram (void) |
| std::map< std::string, std::string > * | GetVersionPath (void) |
| std::vector< std::string > * | GetInputFileVector (void) |
| std::vector< std::string > * | GetOutputFileVector (void) |
| std::vector< char * > * | GetInfileData (void) |
| std::vector< Aurora::Common::UInt32 > * | GetInfileSizes (void) |
Friends | |
| class | Connection |
| Aurora::Client::Service::Service | ( | ) | [inline] |
Service Constructor
| Aurora::Client::Service::~Service | ( | ) | [inline] |
Service Destructor
| bool Aurora::Client::Service::SendMessage | ( | double | timestamp, | |
| Aurora::Common::UInt32 | dest, | |||
| Aurora::Common::UInt32 | msg_size, | |||
| void * | msg_data, | |||
| bool | caused = false, |
|||
| double | tiebreaker = 0 | |||
| ) |
Sends a message to a destination WorkUnit
| [in] | timestamp | Timestamp of message |
| [in] | dest | Destination WorkUnit ID |
| [in] | msg_size | Size of message data |
| [in] | msg_data | Message data |
| [in] | caused | if this message was caused by the message received by GetNextMessage(). Optional parameter |
| [in] | tiebreaker | Tie-breaker field. Optional parameter |
| bool Aurora::Client::Service::GetNextMessageTimestamp | ( | double & | timestamp | ) | [inline] |
Retrieves the next message timestamp from the input queue
| [out] | timestamp | Timestamp of next message |
| bool Aurora::Client::Service::GetNextMessageTieBreaker | ( | double & | tiebreaker | ) | [inline] |
Retrieves the next message tiebreaker field from the input queue
| [out] | tiebreaker | Tiebreaker field of next message |
| bool Aurora::Client::Service::GetNextMessage | ( | Aurora::Common::UInt32 & | msg_size, | |
| void *& | msg_data | |||
| ) | [inline] |
Retrieves the next message from input queue
| [out] | msg_size | Size of message data |
| [out] | msg_data | Message data |
| bool Aurora::Client::Service::GetNextMessage | ( | double & | timestamp, | |
| Aurora::Common::UInt32 & | msg_size, | |||
| void *& | msg_data | |||
| ) | [inline] |
Retrieves the next message from input queue
| [out] | timestamp | Timestamp of message |
| [out] | msg_size | Size of message data |
| [out] | msg_data | Message data |
| bool Aurora::Client::Service::GetNextMessage | ( | Aurora::Common::UInt32 & | src, | |
| double & | timestamp, | |||
| double & | tiebreaker, | |||
| Aurora::Common::UInt32 & | msg_size, | |||
| void *& | msg_data | |||
| ) | [inline] |
Retrieves the next message from input queue
| [out] | src | Sender WorkUnit ID |
| [out] | timestamp | Timestamp of message |
| [out] | tiebreaker | Tie-breaker field |
| [out] | msg_size | Size of message data |
| [out] | msg_data | Message data |
| bool Aurora::Client::Service::CanRun | ( | void | ) | [inline] |
Returns "Runnable" status of the application. Simulation application loop control allows AuroraClient to suspend execution.
| void Aurora::Client::Service::EndRun | ( | void | ) | [inline] |
Sets the termination signal to true to force the end of a simulation run
| void Aurora::Client::Service::IncEventCounter | ( | void | ) | [inline] |
Increments the Event Counter
| double Aurora::Client::Service::GetSimTime | ( | void | ) | [inline] |
Gets the current siulation time
| void Aurora::Client::Service::SetSimTime | ( | double | sim | ) | [inline] |
Sets the current simulation time
| [in] | sim | Simulation time to set |
| double Aurora::Client::Service::GetBeginTime | ( | void | ) | [inline] |
Gets the true begin time of the simulation (not necessarily the begin time of the execution window)
| double Aurora::Client::Service::GetEndTime | ( | void | ) | [inline] |
Gets the end time of the execution window
| Aurora::Common::UInt32 Aurora::Client::Service::GetLeasedWUNum | ( | void | ) | [inline] |
Gets the leased WorkUnit ID number
| Aurora::Common::UInt32 Aurora::Client::Service::GetNumWUs | ( | void | ) | [inline] |
Gets the total number of WorkUnits in Simulation Package
| Aurora::Common::UInt32 Aurora::Client::Service::GetFlags | ( | void | ) | [inline] |
Gets Task-Parallel flags set by the application
| std::string Aurora::Client::Service::GetCapability | ( | void | ) | [inline] |
| std::string Aurora::Client::Service::GetArguments | ( | void | ) | [inline] |
Gets the pre-set Arguments (from SimPkg definition)
| std::string Aurora::Client::Service::GetRunArgs | ( | void | ) | [inline] |
Gets the runtime Arguments which may have been modified by the Task-Parallel runtime/plugin. This string contains the arguments from GetArguments()
| void Aurora::Client::Service::SetRunArgs | ( | std::string | args | ) | [inline] |
Sets the runtime Arguments
| [in] | args | Runtime Argument string |
| std::string Aurora::Client::Service::GetVersion | ( | void | ) | [inline] |
Gets the Version required by the capability
| std::string Aurora::Client::Service::GetInputFiles | ( | void | ) | [inline] |
Gets the input files string as specified by the SimPkg
| std::string Aurora::Client::Service::GetOutputFiles | ( | void | ) | [inline] |
Gets the output files string as specified by the SimPkg
| std::string Aurora::Client::Service::GetProgram | ( | void | ) | [inline] |
Gets the program name of the capability
| std::map<std::string, std::string>* Aurora::Client::Service::GetVersionPath | ( | void | ) | [inline] |
Gets the Version to Path mapping
| std::vector<std::string>* Aurora::Client::Service::GetInputFileVector | ( | void | ) | [inline] |
Gets the Input File vector. This is the vectorized version of the input file string from GetInputFiles().
| std::vector<std::string>* Aurora::Client::Service::GetOutputFileVector | ( | void | ) | [inline] |
Gets the Output File vector. This is the vectorized version of the output file string from GetOutputFiles(). Note that the client will use this vector to capture output files (not the string).
| std::vector<char *>* Aurora::Client::Service::GetInfileData | ( | void | ) | [inline] |
Gets the Input File data vector
| std::vector<Aurora::Common::UInt32>* Aurora::Client::Service::GetInfileSizes | ( | void | ) | [inline] |
Gets the Input File data sizes vector
1.5.1