Public Types | |
enum | MCAgencyState |
Enum for describing the state of the agency. More... | |
enum | ChShellType |
Ch shell type. More... | |
enum | MC_ThreadIndex_e |
Enum for describing the different threads that Mobile-C uses. More... | |
enum | MC_SteerCommand_e |
Available commands for MC_Steer. More... | |
enum | MC_Signal_e |
MobileC system signals. More... | |
Public Member Functions | |
MCAgency () | |
Default constructor. | |
int | Initialize () |
Starts the agency. | |
int | End () |
Stops and destroys the agency. | |
int | ChInitializeOptions (ChShellType shellType, String home) |
Initializes Ch options for the agency. | |
int | SetThreadsAllOn () |
int | SetThreadsAllOff () |
Sets all threads for the agency to "off.". | |
int | SetThreadOn (MC_ThreadIndex_e index) |
Sets an individual thread for the agency to "on.". | |
int | SetThreadOff (MC_ThreadIndex_e index) |
Sets an individual thread for the agency to "off.". | |
int | HaltAgency () |
Temporarily halts the agency. | |
int | ResumeAgency () |
Resumes a halted agency. | |
int | SetDefaultAgentStatus (MCAgent.MC_AgentStatus_e status) |
Sets the default state of an agent in the agency. | |
MCAgent | WaitRetrieveAgent () |
Waits for an agent to arrive and returns the agent. | |
int | WaitAgent () |
Waits for an agent to arrive. | |
int | SendAgentMigrationMessageFile (String filename, String hostname, int port) |
Sends an agent migration message file to an agency. | |
int | LoadAgentMigrationMessageFile (String filename) |
Load an agent migration message. | |
int | SendAgentMigrationMessage (String message, String hostname, int port) |
Sends an agent migration message to an agency. | |
int | CondBroadcast (int id) |
Broadcast a condition signal. | |
int | CondSignal (int id) |
Signal a condition. | |
int | CondReset (int id) |
Reset a condition signal. | |
int | CondWait (int id) |
Wait for a condition signal. | |
int | MutexLock (int id) |
Lock a mutex. | |
int | MutexUnlock (int id) |
Unlock a mutex. | |
int | SemaphorePost (int id) |
Posts a semaphore. | |
int | SemaphoreWait (int id) |
Wait for a semaphore to be posted. | |
int | ResetSignal () |
Reset an agency signal. | |
int | SyncDelete (int id) |
Delete a synchronization variable. | |
int | SyncInit (int id) |
Create a new synchronization variable. | |
int | WaitSignal (MC_Signal_esignals) |
Wait for agency signals. | |
int | BarrierDelete (int id) |
Delete a barrier object. | |
int | BarrierInit (int id, int num_procs) |
Create a new barrier. | |
MC_SteerCommand_e | SteerControl () |
Steering control function. | |
int | Steer (IntPtr funcptr, IntPtr arg) |
Steering control function. | |
int | RegisterService (MCAgent agent, int agentID, String agentName, String[] serviceNames, int numServices) |
Registers services in the agency. | |
int | SearchForService (String searchString, IntPtr agentNames, IntPtr serviceNames, IntPtr agentIDs, IntPtr numResults) |
Searches for services in the agency. | |
int | AddAgent (MCAgent agent) |
Add an agent to the agency. | |
MCAgent | FindAgentByName (String name) |
Finds an agent by its name. | |
MCAgent | FindAgentByID (int id) |
Find an agent by its ID. | |
MCAgent | RetrieveAgent () |
Retrieve an agent from the agency. | |
int | AclSend (MCAclMessage acl_message) |
Send an ACL message to the agency. | |
int | MainLoop () |
Makes the agency wait indefinitely. | |
Properties | |
IntPtr | Agency [get, set] |
int | Port [get, set] |
Accessor for the port number of the agency. | |
MCAgencyState | State [get] |
Accessor for the agency state. | |
Private Member Functions | |
static IntPtr | _MC_Initialize (int port, ref MCAgencyOptions_t options) |
static int | _MC_End (IntPtr agency) |
static int | _MC_ChInitializeOptions (IntPtr agency, ChOptions_t options) |
static int | _MC_InitializeAgencyOptions (ref MCAgencyOptions_t options) |
static int | _MC_SetThreadsAllOn (ref MCAgencyOptions_t options) |
static int | _MC_SetThreadsAllOff (ref MCAgencyOptions_t options) |
static int | _MC_SetThreadOn (ref MCAgencyOptions_t options, MC_ThreadIndex_e index) |
static int | _MC_SetThreadOff (ref MCAgencyOptions_t options, MC_ThreadIndex_e index) |
static int | _MC_HaltAgency (IntPtr agency) |
static int | _MC_ResumeAgency (IntPtr agency) |
static int | _MC_SetDefaultAgentStatus (IntPtr agency, MCAgent.MC_AgentStatus_e status) |
static IntPtr | _MC_WaitRetrieveAgent (IntPtr agency) |
static int | _MC_WaitAgent (IntPtr agency) |
static int | _MC_MainLoop (IntPtr agency) |
static int | _MC_SendAgentMigrationMessageFile (IntPtr agency, String filename, String hostname, int port) |
static int | _MC_SendAgentMigrationMessage (IntPtr agency, String message, String hostname, int port) |
static int | _MC_CondBroadcast (IntPtr agency, int id) |
static int | _MC_CondSignal (IntPtr agency, int id) |
static int | _MC_CondReset (IntPtr agency, int id) |
static int | _MC_CondWait (IntPtr agency, int id) |
static int | _MC_MutexLock (IntPtr agency, int id) |
static int | _MC_MutexUnlock (IntPtr agency, int id) |
static int | _MC_SemaphorePost (IntPtr agency, int id) |
static int | _MC_SemaphoreWait (IntPtr agency, int id) |
static int | _MC_ResetSignal (IntPtr agency) |
static int | _MC_SyncDelete (IntPtr agency, int id) |
static int | _MC_SyncInit (IntPtr agency, int id) |
static int | _MC_WaitSignal (IntPtr agency, int signals) |
static int | _MC_BarrierDelete (IntPtr agency, int id) |
static int | _MC_BarrierInit (IntPtr agency, int id, int num_procs) |
static MC_SteerCommand_e | _MC_SteerControl () |
static int | _MC_Steer (IntPtr agency, IntPtr funcptr, IntPtr arg) |
static int | _MC_RegisterService (IntPtr agency, IntPtr agent, int agentID, String agentName, String[] serviceNames, int numServices) |
static int | _MC_SearchForService (IntPtr agency, String searchString, IntPtr agentNames, IntPtr serviceNames, IntPtr agentIDs, IntPtr numResults) |
static int | _MC_AddAgent (IntPtr agency, IntPtr agent) |
static internal int | _MC_DeleteAgent (IntPtr agent) |
static IntPtr | _MC_FindAgentByName (IntPtr agency, String name) |
static IntPtr | _MC_FindAgentByID (IntPtr agency, int ID) |
static IntPtr | _MC_RetrieveAgent (IntPtr agency) |
static internal int | _MC_GetAgentID (IntPtr agent) |
static internal String | _MC_GetAgentName (IntPtr agent) |
static internal int | _MC_GetAgentNumTasks (IntPtr agent) |
static internal MCAgent.MC_AgentStatus_e | _MC_GetAgentStatus (IntPtr agent) |
static internal MCAgent.MC_AgentType_e | _MC_GetAgentType (IntPtr agent) |
static internal String | _MC_GetAgentXMLString (IntPtr agent) |
static internal int | _MC_PrintAgentCode (IntPtr agent) |
static internal String | _MC_RetrieveAgentCode (IntPtr agent) |
static internal int | _MC_SetAgentStatus (IntPtr agent, MCAgent.MC_AgentStatus_e status) |
static internal int | _MC_TerminateAgent (IntPtr agent) |
static internal int | _MC_CallAgentFunc (IntPtr agent, String funcName, IntPtr returnVal, IntPtr varg) |
static internal IntPtr | _MC_GetAgentExecEngine (IntPtr agent) |
static internal int | _MC_GetAgentReturnData (IntPtr agent, int task_num, IntPtr data, IntPtr dim, IntPtr extent) |
static internal IntPtr | _MC_AclNew () |
static internal int | _MC_AclPost (IntPtr agent, IntPtr message) |
static internal IntPtr | _MC_AclReply (IntPtr acl_message) |
static internal IntPtr | _MC_AclRetrieve (IntPtr agent) |
static internal int | _MC_AclSend (IntPtr agency, IntPtr acl_message) |
static internal IntPtr | _MC_AclWaitRetrieve (IntPtr agent) |
static internal int | _MC_AclSetPerformative (IntPtr acl, MCAclMessage.MC_FipaPerformative_e performative) |
static internal int | _MC_AclSetSender (IntPtr acl, String name, String address) |
static internal int | _MC_AclAddReceiver (IntPtr acl, String name, String address) |
static internal int | _MC_AclAddReplyTo (IntPtr acl, String name, String address) |
static internal int | _MC_AclSetContent (IntPtr acl, String content) |
static internal int | _MC_AclDestroy (IntPtr acl) |
Private Attributes | |
IntPtr | agency_p = IntPtr.Zero |
MCAgencyOptions_t | options |
int | port = -1 |
MCAgencyState | state = MCAgencyState.NoState |
const String | mcdll |
Data Structures | |
struct | ChOptions_t |
ChOptions structures. More... | |
struct | MCAgency_t |
struct | MCAgencyOptions_t |
This class provides an interface to the Mobile-C agency. Member functions for the class are generally overloaded versions of the respective functions in the Mobile-C library. The class maintains a pointer to the Mobile-C agency in unmanaged memory. The pointer is not accessible by the user.
Definition at line 341 of file MCAgency.cs.
Enum for describing the state of the agency.
This enum is used to determine whether or not certain actions should be permitted, such as halting, resuming, and ending an agency
NoState | Default, uninitialized state |
Initialized | Agency initialized, but not started |
Running | Agency is running |
Halted | Agency has been stopped (can be resumed) |
Ended | Agency is stopped (destroyed) |
Definition at line 349 of file MCAgency.cs.
Ch shell type.
Used to set the shell type for the Ch interpretter.
Definition at line 363 of file MCAgency.cs.
Enum for describing the different threads that Mobile-C uses.
These enums can be used to turn threads on and off before an agency is initialized.
MC_THREAD_DF | Directory Facilitator |
MC_THREAD_AMS | Agent Managment system |
MC_THREAD_ACC | Agency communications |
MC_THREAD_CP | Command Prompt |
MC_THREAD_AGENT | Agent threads |
MC_THREAD_ALL |
Definition at line 79 of file MCExports.cs.
Available commands for MC_Steer.
MC_RUN | Continue the algorithm |
MC_SUSPEND | Suspend/pause the algorithm |
MC_RESTART | Restart the algorithm from the beginning |
MC_STOP | Stop the algorithm |
Definition at line 94 of file MCExports.cs.
MobileC system signals.
Each signal is activated after the corresponding action. i.e. The 'MC_RECV_MESSAGE' signal is activated after a message is received.
MC_NO_SIGNAL | |
MC_RECV_CONNECTION | |
MC_RECV_MESSAGE | |
MC_RECV_AGENT | |
MC_RECV_RETURN | |
MC_EXEC_AGENT | |
MC_ALL_SIGNALS |
Definition at line 112 of file MCExports.cs.
LibMC::MCAgency::MCAgency | ( | ) | [inline] |
Default constructor.
The default constructor for the MCAgency class. It creates a new agency, default options for the agency, and initializes the agency. It does not start the agency.
Definition at line 381 of file MCAgency.cs.
References _MC_InitializeAgencyOptions(), and state.
int LibMC::MCAgency::Initialize | ( | ) | [inline] |
int LibMC::MCAgency::End | ( | ) | [inline] |
Stops and destroys the agency.
Stops the agency and sets the agency state appropriately.
Definition at line 481 of file MCAgency.cs.
int LibMC::MCAgency::ChInitializeOptions | ( | ChShellType | shellType, | |
String | home | |||
) | [inline] |
Initializes Ch options for the agency.
Can be used to set the home directory and shell mode for the Ch interpretter.
shellType | The type of shell Ch should use: CH_REGULARCH or CH_SAFECH. | |
home | The home directory Ch should use. |
Definition at line 499 of file MCAgency.cs.
References _MC_ChInitializeOptions(), Agency, LibMC::MCAgency::ChOptions_t::chhome, int, and LibMC::MCAgency::ChOptions_t::shelltype.
int LibMC::MCAgency::SetThreadsAllOn | ( | ) | [inline] |
int LibMC::MCAgency::SetThreadsAllOff | ( | ) | [inline] |
Sets all threads for the agency to "off.".
Sets all threads for the agency to "off." Not recommended for use.
Definition at line 530 of file MCAgency.cs.
References _MC_SetThreadsAllOff().
int LibMC::MCAgency::SetThreadOn | ( | MC_ThreadIndex_e | index | ) | [inline] |
Sets an individual thread for the agency to "on.".
Threads are on by default. If they have been turned off, this function turns them on again.
index | The enum that identifies the thread to be turned on. |
Definition at line 546 of file MCAgency.cs.
References _MC_SetThreadOn().
int LibMC::MCAgency::SetThreadOff | ( | MC_ThreadIndex_e | index | ) | [inline] |
Sets an individual thread for the agency to "off.".
Most commonly used to turn the command prompt thread off.
index | The enum that identifies the thread to be turned off. |
Definition at line 561 of file MCAgency.cs.
References _MC_SetThreadOff().
int LibMC::MCAgency::HaltAgency | ( | ) | [inline] |
Temporarily halts the agency.
Halts the agency until it is resumed or ended.
Definition at line 576 of file MCAgency.cs.
References _MC_HaltAgency(), Agency, and state.
int LibMC::MCAgency::ResumeAgency | ( | ) | [inline] |
Resumes a halted agency.
Resumes a halted agency. Cannot be used on ended agencies.
Definition at line 593 of file MCAgency.cs.
References _MC_ResumeAgency(), Agency, and state.
int LibMC::MCAgency::SetDefaultAgentStatus | ( | MCAgent.MC_AgentStatus_e | status | ) | [inline] |
Sets the default state of an agent in the agency.
Can be used to set the default status of agents, but most agents managed their state on their own.
status | The enum that identifies the desired agent state. |
Definition at line 609 of file MCAgency.cs.
References _MC_SetDefaultAgentStatus(), and Agency.
MCAgent LibMC::MCAgency::WaitRetrieveAgent | ( | ) | [inline] |
Waits for an agent to arrive and returns the agent.
Waits for an agent to arrive in the agency, then returns that agent. The agent is not allowed to execute.
Definition at line 622 of file MCAgency.cs.
References _MC_WaitRetrieveAgent(), and Agency.
int LibMC::MCAgency::WaitAgent | ( | ) | [inline] |
Waits for an agent to arrive.
Waits for an agent to arrive in the agency. The agent is allowed to execute normally.
Definition at line 639 of file MCAgency.cs.
References _MC_WaitAgent(), and Agency.
int LibMC::MCAgency::SendAgentMigrationMessageFile | ( | String | filename, | |
String | hostname, | |||
int | port | |||
) | [inline] |
Sends an agent migration message file to an agency.
Sends the specified XML file to another agency (local or remote).
filename | The name of the file to send (fully qualified). | |
hostname | The URL, IP address, or other identifier for the agency host. | |
port | The port to send to. |
Definition at line 658 of file MCAgency.cs.
References Agency.
int LibMC::MCAgency::LoadAgentMigrationMessageFile | ( | String | filename | ) | [inline] |
Load an agent migration message.
Loads the specified XML file to this agency automatically. There is no need to specify a port or agency location.
filename | The name of the file to send (fully qualified). |
Definition at line 672 of file MCAgency.cs.
int LibMC::MCAgency::SendAgentMigrationMessage | ( | String | message, | |
String | hostname, | |||
int | port | |||
) | [inline] |
Sends an agent migration message to an agency.
Sends an agent migration message to another agency (local or remote).
message | The agent migration message. | |
hostname | The URL, IP address, or other identifier for the agency host. | |
port | The port to send to. |
Definition at line 687 of file MCAgency.cs.
References _MC_SendAgentMigrationMessage(), and Agency.
Broadcast a condition signal.
Broadcasts a signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
id | The ID number of the condition to signal. |
Definition at line 705 of file MCAgency.cs.
References _MC_CondBroadcast(), and Agency.
Signal a condition.
Signals a condition in the agency. The parameter "id" is the ID of the agency sync variable to signal that was created with SyncInit().
id | The ID number of the condition to signal. |
Definition at line 719 of file MCAgency.cs.
References _MC_CondSignal(), and Agency.
Reset a condition signal.
Resets a signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function must be called after a condition is received in order to clear it.
id | The ID number of the condition to reset. |
Definition at line 734 of file MCAgency.cs.
References _MC_CondReset(), and Agency.
Wait for a condition signal.
Waits for a condition signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function blocks until the signal is received.
id | The ID number of the condition to wait for. |
Definition at line 749 of file MCAgency.cs.
References _MC_CondWait(), and Agency.
Lock a mutex.
Locks a mutex in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function blocks until the mutex is locked.
id | The ID number of the mutex to lock. |
Definition at line 764 of file MCAgency.cs.
References _MC_MutexLock(), and Agency.
Unlock a mutex.
Locks a mutex in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
id | The ID number of the mutex to unlock. |
Definition at line 778 of file MCAgency.cs.
References _MC_MutexUnlock(), and Agency.
Posts a semaphore.
Posts a sempaphore in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
id | The ID number of the semaphore to post. |
Definition at line 792 of file MCAgency.cs.
References _MC_SemaphorePost(), and Agency.
Wait for a semaphore to be posted.
Wait for a semaphore in the agency to be posted. The parameter "id" is the ID of the agency sync variable created with SyncInit(). This function blocks until the semaphore is posted.
id | The ID number of the semaphore to wait for. |
Definition at line 807 of file MCAgency.cs.
References _MC_SemaphoreWait(), and Agency.
int LibMC::MCAgency::ResetSignal | ( | ) | [inline] |
Reset an agency signal.
Resets a signal in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
Definition at line 820 of file MCAgency.cs.
References _MC_ResetSignal(), and Agency.
Delete a synchronization variable.
Deletes a synchronization variable in the agency. The parameter "id" is the ID of the agency sync variable created with SyncInit().
id | The ID number of the variable to delete. |
Definition at line 834 of file MCAgency.cs.
References _MC_SyncDelete(), and Agency.
Create a new synchronization variable.
Creates a new synchronization variable in the agency. The parameter "id" is desired ID of the variable. A random ID is returned if "id" is already in use.
id | The ID number of the condition to signal. |
Definition at line 850 of file MCAgency.cs.
References _MC_SyncInit(), and Agency.
int LibMC::MCAgency::WaitSignal | ( | MC_Signal_e | signals | ) | [inline] |
Wait for agency signals.
Waits for signals to occur in the agency.
signals | The ID number of the condition to signal. |
Definition at line 863 of file MCAgency.cs.
References _MC_WaitSignal(), and Agency.
Delete a barrier object.
Deletes a barrier object from the agency. The parameter "id" is the ID of the agency sync variable created with BarrierInit().
id | The ID number of the barrier to delete. |
Definition at line 877 of file MCAgency.cs.
References _MC_BarrierDelete(), and Agency.
Create a new barrier.
Creates a new barrier object in the agency.
id | The ID number of the condition to signal. | |
num_procs | the number of process to block (?) |
Definition at line 891 of file MCAgency.cs.
References _MC_BarrierInit(), and Agency.
MC_SteerCommand_e LibMC::MCAgency::SteerControl | ( | ) | [inline] |
Steering control function.
Really not sure.
Definition at line 909 of file MCAgency.cs.
References _MC_SteerControl().
int LibMC::MCAgency::Steer | ( | IntPtr | funcptr, | |
IntPtr | arg | |||
) | [inline] |
Steering control function.
Really not sure.
funcptr | Pointer to the steering function | |
arg | Argument to function |
Definition at line 927 of file MCAgency.cs.
int LibMC::MCAgency::RegisterService | ( | MCAgent | agent, | |
int | agentID, | |||
String | agentName, | |||
String[] | serviceNames, | |||
int | numServices | |||
) | [inline] |
Registers services in the agency.
Registers services provided by agents with the agency. Not really useful in binary space.
agent | The agent providing the services. | |
agentID | The agent ID number. | |
agentName | The agent name. | |
serviceNames | An array of service names. | |
numServices | The number of services provided. |
Definition at line 952 of file MCAgency.cs.
References _MC_RegisterService(), Agency, and LibMC::MCAgent::Agent.
int LibMC::MCAgency::SearchForService | ( | String | searchString, | |
IntPtr | agentNames, | |||
IntPtr | serviceNames, | |||
IntPtr | agentIDs, | |||
IntPtr | numResults | |||
) | [inline] |
Searches for services in the agency.
Searches for services provided by agents with the agency. Not really useful in binary space.
searchString | The agent providing the services. | |
agentNames | The agent ID number. | |
serviceNames | The agent name. | |
agentIDs | An array of service names. | |
numResults | The number of services provided. |
Definition at line 975 of file MCAgency.cs.
Add an agent to the agency.
Adds an agent to the agency.
agent | The agent to add. |
Definition at line 993 of file MCAgency.cs.
References _MC_AddAgent(), Agency, and LibMC::MCAgent::Agent.
MCAgent LibMC::MCAgency::FindAgentByName | ( | String | name | ) | [inline] |
Finds an agent by its name.
Finds an agent in the agency by its name.
name | The name of the agent to search for. |
Definition at line 1006 of file MCAgency.cs.
References _MC_FindAgentByName(), and Agency.
Find an agent by its ID.
Finds an agent in the agency by its ID number.
id | The ID number of the condition to signal. |
Definition at line 1019 of file MCAgency.cs.
References _MC_FindAgentByID(), and Agency.
MCAgent LibMC::MCAgency::RetrieveAgent | ( | ) | [inline] |
Retrieve an agent from the agency.
Really not sure.
Definition at line 1031 of file MCAgency.cs.
References _MC_RetrieveAgent(), and Agency.
int LibMC::MCAgency::AclSend | ( | MCAclMessage | acl_message | ) | [inline] |
Send an ACL message to the agency.
Sends an ACL message to the agency. The message is delivered appropriately.
acl_message | The message to send. |
Definition at line 1048 of file MCAgency.cs.
References LibMC::MCAclMessage::AclMsg, and Agency.
int LibMC::MCAgency::MainLoop | ( | ) | [inline] |
Makes the agency wait indefinitely.
Makes the agency wait indefinitely until it receives a "quit" command or is otherwise terminated.
Definition at line 1061 of file MCAgency.cs.
References _MC_MainLoop(), and Agency.
static IntPtr LibMC::MCAgency::_MC_Initialize | ( | int | port, | |
ref MCAgencyOptions_t | options | |||
) | [private] |
static int LibMC::MCAgency::_MC_End | ( | IntPtr | agency | ) | [private] |
static int LibMC::MCAgency::_MC_ChInitializeOptions | ( | IntPtr | agency, | |
ChOptions_t | options | |||
) | [private] |
Referenced by ChInitializeOptions().
static int LibMC::MCAgency::_MC_InitializeAgencyOptions | ( | ref MCAgencyOptions_t | options | ) | [private] |
Referenced by MCAgency().
static int LibMC::MCAgency::_MC_SetThreadsAllOn | ( | ref MCAgencyOptions_t | options | ) | [private] |
Referenced by SetThreadsAllOn().
static int LibMC::MCAgency::_MC_SetThreadsAllOff | ( | ref MCAgencyOptions_t | options | ) | [private] |
Referenced by SetThreadsAllOff().
static int LibMC::MCAgency::_MC_SetThreadOn | ( | ref MCAgencyOptions_t | options, | |
MC_ThreadIndex_e | index | |||
) | [private] |
Referenced by SetThreadOn().
static int LibMC::MCAgency::_MC_SetThreadOff | ( | ref MCAgencyOptions_t | options, | |
MC_ThreadIndex_e | index | |||
) | [private] |
Referenced by SetThreadOff().
static int LibMC::MCAgency::_MC_HaltAgency | ( | IntPtr | agency | ) | [private] |
Referenced by HaltAgency().
static int LibMC::MCAgency::_MC_ResumeAgency | ( | IntPtr | agency | ) | [private] |
Referenced by ResumeAgency().
static int LibMC::MCAgency::_MC_SetDefaultAgentStatus | ( | IntPtr | agency, | |
MCAgent.MC_AgentStatus_e | status | |||
) | [private] |
Referenced by SetDefaultAgentStatus().
static IntPtr LibMC::MCAgency::_MC_WaitRetrieveAgent | ( | IntPtr | agency | ) | [private] |
Referenced by WaitRetrieveAgent().
static int LibMC::MCAgency::_MC_WaitAgent | ( | IntPtr | agency | ) | [private] |
Referenced by WaitAgent().
static int LibMC::MCAgency::_MC_MainLoop | ( | IntPtr | agency | ) | [private] |
Referenced by MainLoop().
static int LibMC::MCAgency::_MC_SendAgentMigrationMessageFile | ( | IntPtr | agency, | |
String | filename, | |||
String | hostname, | |||
int | port | |||
) | [private] |
static int LibMC::MCAgency::_MC_SendAgentMigrationMessage | ( | IntPtr | agency, | |
String | message, | |||
String | hostname, | |||
int | port | |||
) | [private] |
Referenced by SendAgentMigrationMessage().
Referenced by CondBroadcast().
Referenced by CondSignal().
Referenced by CondReset().
Referenced by CondWait().
Referenced by MutexLock().
Referenced by MutexUnlock().
Referenced by SemaphorePost().
Referenced by SemaphoreWait().
static int LibMC::MCAgency::_MC_ResetSignal | ( | IntPtr | agency | ) | [private] |
Referenced by ResetSignal().
Referenced by SyncDelete().
Referenced by SyncInit().
Referenced by WaitSignal().
Referenced by BarrierDelete().
Referenced by BarrierInit().
static MC_SteerCommand_e LibMC::MCAgency::_MC_SteerControl | ( | ) | [private] |
Referenced by SteerControl().
static int LibMC::MCAgency::_MC_Steer | ( | IntPtr | agency, | |
IntPtr | funcptr, | |||
IntPtr | arg | |||
) | [private] |
static int LibMC::MCAgency::_MC_RegisterService | ( | IntPtr | agency, | |
IntPtr | agent, | |||
int | agentID, | |||
String | agentName, | |||
String[] | serviceNames, | |||
int | numServices | |||
) | [private] |
Referenced by RegisterService().
static int LibMC::MCAgency::_MC_SearchForService | ( | IntPtr | agency, | |
String | searchString, | |||
IntPtr | agentNames, | |||
IntPtr | serviceNames, | |||
IntPtr | agentIDs, | |||
IntPtr | numResults | |||
) | [private] |
static int LibMC::MCAgency::_MC_AddAgent | ( | IntPtr | agency, | |
IntPtr | agent | |||
) | [private] |
Referenced by AddAgent().
static internal int LibMC::MCAgency::_MC_DeleteAgent | ( | IntPtr | agent | ) | [private] |
static IntPtr LibMC::MCAgency::_MC_FindAgentByName | ( | IntPtr | agency, | |
String | name | |||
) | [private] |
Referenced by FindAgentByName().
static IntPtr LibMC::MCAgency::_MC_FindAgentByID | ( | IntPtr | agency, | |
int | ID | |||
) | [private] |
Referenced by FindAgentByID().
static IntPtr LibMC::MCAgency::_MC_RetrieveAgent | ( | IntPtr | agency | ) | [private] |
Referenced by RetrieveAgent().
static internal int LibMC::MCAgency::_MC_GetAgentID | ( | IntPtr | agent | ) | [private] |
static internal String LibMC::MCAgency::_MC_GetAgentName | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_GetAgentNumTasks | ( | IntPtr | agent | ) | [private] |
static internal MCAgent.MC_AgentStatus_e LibMC::MCAgency::_MC_GetAgentStatus | ( | IntPtr | agent | ) | [private] |
static internal MCAgent.MC_AgentType_e LibMC::MCAgency::_MC_GetAgentType | ( | IntPtr | agent | ) | [private] |
static internal String LibMC::MCAgency::_MC_GetAgentXMLString | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_PrintAgentCode | ( | IntPtr | agent | ) | [private] |
static internal String LibMC::MCAgency::_MC_RetrieveAgentCode | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_SetAgentStatus | ( | IntPtr | agent, | |
MCAgent.MC_AgentStatus_e | status | |||
) | [private] |
static internal int LibMC::MCAgency::_MC_TerminateAgent | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_CallAgentFunc | ( | IntPtr | agent, | |
String | funcName, | |||
IntPtr | returnVal, | |||
IntPtr | varg | |||
) | [private] |
static internal IntPtr LibMC::MCAgency::_MC_GetAgentExecEngine | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_GetAgentReturnData | ( | IntPtr | agent, | |
int | task_num, | |||
IntPtr | data, | |||
IntPtr | dim, | |||
IntPtr | extent | |||
) | [private] |
static internal IntPtr LibMC::MCAgency::_MC_AclNew | ( | ) | [private] |
static internal int LibMC::MCAgency::_MC_AclPost | ( | IntPtr | agent, | |
IntPtr | message | |||
) | [private] |
static internal IntPtr LibMC::MCAgency::_MC_AclReply | ( | IntPtr | acl_message | ) | [private] |
static internal IntPtr LibMC::MCAgency::_MC_AclRetrieve | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_AclSend | ( | IntPtr | agency, | |
IntPtr | acl_message | |||
) | [private] |
static internal IntPtr LibMC::MCAgency::_MC_AclWaitRetrieve | ( | IntPtr | agent | ) | [private] |
static internal int LibMC::MCAgency::_MC_AclSetPerformative | ( | IntPtr | acl, | |
MCAclMessage.MC_FipaPerformative_e | performative | |||
) | [private] |
static internal int LibMC::MCAgency::_MC_AclSetSender | ( | IntPtr | acl, | |
String | name, | |||
String | address | |||
) | [private] |
static internal int LibMC::MCAgency::_MC_AclAddReceiver | ( | IntPtr | acl, | |
String | name, | |||
String | address | |||
) | [private] |
static internal int LibMC::MCAgency::_MC_AclAddReplyTo | ( | IntPtr | acl, | |
String | name, | |||
String | address | |||
) | [private] |
static internal int LibMC::MCAgency::_MC_AclSetContent | ( | IntPtr | acl, | |
String | content | |||
) | [private] |
static internal int LibMC::MCAgency::_MC_AclDestroy | ( | IntPtr | acl | ) | [private] |
IntPtr LibMC::MCAgency::agency_p = IntPtr.Zero [private] |
Definition at line 369 of file MCAgency.cs.
MCAgencyOptions_t LibMC::MCAgency::options [private] |
Definition at line 370 of file MCAgency.cs.
int LibMC::MCAgency::port = -1 [private] |
MCAgencyState LibMC::MCAgency::state = MCAgencyState.NoState [private] |
Definition at line 372 of file MCAgency.cs.
Referenced by End(), HaltAgency(), Initialize(), MCAgency(), and ResumeAgency().
const String LibMC::MCAgency::mcdll [private] |
IntPtr LibMC::MCAgency::Agency [get, set, private] |
Definition at line 389 of file MCAgency.cs.
Referenced by AclSend(), AddAgent(), BarrierDelete(), BarrierInit(), ChInitializeOptions(), CondBroadcast(), CondReset(), CondSignal(), CondWait(), End(), FindAgentByID(), FindAgentByName(), HaltAgency(), Initialize(), LoadAgentMigrationMessageFile(), MainLoop(), MutexLock(), MutexUnlock(), RegisterService(), ResetSignal(), ResumeAgency(), RetrieveAgent(), SemaphorePost(), SemaphoreWait(), SendAgentMigrationMessage(), SendAgentMigrationMessageFile(), SetDefaultAgentStatus(), SyncDelete(), SyncInit(), WaitAgent(), WaitRetrieveAgent(), and WaitSignal().
int LibMC::MCAgency::Port [get, set] |
Accessor for the port number of the agency.
Allows the user to set the agency port or get the port number while it is running.
Definition at line 418 of file MCAgency.cs.
Referenced by LoadAgentMigrationMessageFile().
MCAgencyState LibMC::MCAgency::State [get] |
Accessor for the agency state.
Allows the user to query the state of the agency.
Definition at line 438 of file MCAgency.cs.