/// <summary> /// Method called that defines the property schema for the step. /// </summary> public void DefineSchema(IPropertyDefinitions schema) { IPropertyDefinition x; IPropertyDefinition y; IPropertyDefinition z; IPropertyDefinition maxDistance; IPropertyDefinition flockQueue; x = schema.AddStateProperty("XState"); y = schema.AddStateProperty("YState"); z = schema.AddStateProperty("ZState"); x.DisplayName = "X State Variable Name"; y.DisplayName = "Y State Variable Name"; z.DisplayName = "Z State Variable Name"; x.Description = "Name of the state variable that will store the x steering vector."; y.Description = "Name of the state variable that will store the y steering vector."; z.Description = "Name of the state variable that will store the z steering vector."; x.Required = false; y.Required = false; z.Required = false; maxDistance = schema.AddExpressionProperty("MaxDistance", "0.0"); maxDistance.DisplayName = "Desired Separation Distance"; maxDistance.Description = "The desired separation distance to maintain from other entities"; maxDistance.Required = true; flockQueue = schema.AddElementProperty("FlockQueue", flockQueue = schema.AddStateProperty }
/// <summary> /// Method called that defines the property schema for the step. /// </summary> public void DefineSchema(IPropertyDefinitions schema) { IPropertyDefinition pd; // Reference to the excel to write to pd = schema.AddElementProperty("ExcelConnectEPPlus", ExcelConnectEPPlusElementDefinition.MY_ID); // And a format specifier pd = schema.AddStringProperty("Worksheet", String.Empty); pd.Description = "Worksheet Property"; pd.Required = true; pd = schema.AddExpressionProperty("Row", "1"); pd.Description = "Row Property"; pd.Required = true; pd = schema.AddExpressionProperty("StartingColumn", "1"); pd.DisplayName = "Starting Column"; pd.Description = "Starting Column Property"; pd.Required = true; // A repeat group of values to write out IRepeatGroupPropertyDefinition parts = schema.AddRepeatGroupProperty("Items"); parts.Description = "The expression items to be written out."; pd = parts.PropertyDefinitions.AddExpressionProperty("Expression", String.Empty); pd.Description = "Expression value to be written out."; }
/// <summary> /// Method called that defines the property schema for the step. /// </summary> public void DefineSchema(IPropertyDefinitions schema) { IPropertyDefinition pd; // Reference to the file to read from pd = schema.AddElementProperty("ExcelConnectEPPlus", ExcelConnectEPPlusElementDefinition.MY_ID); pd = schema.AddStringProperty("Worksheet", String.Empty); pd.Description = "Worksheet Property"; pd.Required = true; pd = schema.AddExpressionProperty("Row", "1"); pd.Description = "Row Property"; pd.Required = true; pd = schema.AddExpressionProperty("StartingColumn", "1"); pd.DisplayName = "Starting Column"; pd.Description = "Column Property"; pd.Required = true; // A repeat group of states to read into IRepeatGroupPropertyDefinition parts = schema.AddRepeatGroupProperty("States"); parts.Description = "The state values to read the values into"; pd = parts.PropertyDefinitions.AddStateProperty("State"); pd.Description = "A state to read a value into from Excel."; }
/// <summary> /// Method called that defines the property schema for the step. /// </summary> public void DefineSchema(IPropertyDefinitions schema) { // property definition that will be added to the schema of this step IPropertyDefinition pd; // Add the connector element property definition to the step. pd = schema.AddElementProperty("MqttServer", MqttPublishConnectorDefinition.MY_ID); pd.DisplayName = "MQTT Server"; pd.Description = "The MQTT URL and port of the MQTT server(broker). For example, localhost:1883. Default port is 1883."; pd.Required = true; pd = schema.AddStringProperty("MqttTopic", "MqttSample/MyTopic"); pd.DisplayName = "The MQTT Topic"; pd.Description = "The MQTT topic. Case sensitive. By convention, hierarchical using slashes. Example: PlantTopeka/Machine1/State/Speed"; pd.Required = true; pd = schema.AddExpressionProperty("MqttPayload", "0.0"); pd.DisplayName = "Payload"; pd.Description = "The payload data to send with the Topic"; pd.Required = true; }
/// <summary> /// Method called that defines the property schema for the step. /// </summary> public void DefineSchema(IPropertyDefinitions schema) { var pd = schema.AddElementProperty("AgentConnection", AgentConnectionDefinition.MY_ID); pd.DisplayName = "Agent Connection"; pd.Description = "An agent connection object."; pd.Required = true; pd = schema.AddStateProperty("EpisodeNumber"); pd.DisplayName = "Episode Number"; pd.Description = "The number of the episode the agent is currently in"; pd.Required = true; pd = schema.AddStateProperty("Status"); pd.DisplayName = "Agent Status"; pd.Description = "0: Ongoing, 1: Failure, 2: Success"; pd.Required = true; pd = schema.AddStateProperty("Reward"); pd.DisplayName = "Reward"; pd.Description = "The reward given to the agent as a consequence of the last action taken"; pd.Required = true; pd = schema.AddStateProperty("Action"); pd.DisplayName = "Action"; pd.Description = "The actions received from the agent"; pd.Required = true; IRepeatGroupPropertyDefinition parts = schema.AddRepeatGroupProperty("States"); parts.DisplayName = "States"; parts.Description = "The states that will be given to the agent"; parts.Required = true; pd = parts.PropertyDefinitions.AddStateProperty("State"); pd.Description = "State"; }