Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page The GetAction method  The SetParam method Next page


The GetParam method returns the value of the specified parameter of the system object for the MsgObject or Event object.

Syntax for method invocation:

 function GetParam(param: String) : String

Method arguments:

  1. param is a required argument. It corresponds to the parameter name of the system object for which the MsgObject object (or the Event static object) was created. Possible values: String type, range is limited by the parameters available for the given object.

Note

If the object has no parameter with this name, then the method returns an empty string.

Example. When any event from any camera is registered, check from which computer the event comes. If the computer has the WS3 name, create the event copy in which the computer’s name is “Computer”.

 if (Event.SourceType == "CAM")
{
var msg = Event.Clone();
if (msg.GetParam("SLAVE_id") == "WS3")
{
msg.SetParam("SLAVE_id", "Computer");
NotifyEvent(msg);
}
}