/// <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) { 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, state, and event schema for the element. /// </summary> public void DefineSchema(IElementSchema schema) { IPropertyDefinitions _propDefs = schema.PropertyDefinitions; IPropertyDefinition pd; pd = _propDefs.AddStateProperty(MyStrings.TableIndexName); pd.Description = "References the State Property used to select the SimioTable row"; pd.Required = false; pd = _propDefs.AddExpressionProperty(MyStrings.TableRowCountName, "0"); pd.Description = "An Expression containing # of rows in the SimioTable"; pd.Required = false; // A repeat group of states to read into IRepeatGroupPropertyDefinition columns = _propDefs.AddRepeatGroupProperty(MyStrings.TableColumnMappingsName); columns.Description = "The RepeatGroup mapping expressions to the Table columns"; pd = columns.PropertyDefinitions.AddStringProperty(MyStrings.ColumnMapNameName, ""); pd.Description = "Column Name Map"; pd = columns.PropertyDefinitions.AddStateProperty(MyStrings.ColumnMapStateName); pd.Description = "Set if the column is a State"; pd = columns.PropertyDefinitions.AddExpressionProperty(MyStrings.ColumnMapExpressionName, ""); pd.Description = "Set if the column is an Expression"; pd = columns.PropertyDefinitions.AddExpressionProperty(MyStrings.ColumnMapPropertyName, ""); pd.Description = "Set if the column is a Property"; }
/// <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) { // Example of how to add a property definition to the step. IPropertyDefinition Ox, Oy, Oz; IPropertyDefinition Rx, Ry, Rz; IPropertyDefinition Rlength; IPropertyDefinition B0x, B0y, B0z; IPropertyDefinition B1x, B1y, B1z; Ox = schema.AddExpressionProperty("Ox", "0.0"); Oy = schema.AddExpressionProperty("Oy", "0.0"); Oz = schema.AddExpressionProperty("Oz", "0.0"); Rx = schema.AddExpressionProperty("Rx", "1.0"); Ry = schema.AddExpressionProperty("Ry", "1.0"); Rz = schema.AddExpressionProperty("Rz", "1.0"); Rlength = schema.AddExpressionProperty("Rlength", "1.0"); Ox.DisplayName = "Line Origin X"; Oy.DisplayName = "Line Origin Y"; Oz.DisplayName = "Line Origin Z"; Rx.DisplayName = "Line X Vector"; Ry.DisplayName = "Line Y Vector"; Rz.DisplayName = "Line Z Vector"; Rlength.DisplayName = "Length of the line"; Ox.Description = "The X coordinate of the beginning of the line"; Oy.Description = "The Y coordinate of the beginning of the line"; Oz.Description = "The Z coordinate of the beginning of the line"; Rx.Description = "The X component of the vector describing the lines direction"; Ry.Description = "The Y component of the vector describing the lines direction"; Rz.Description = "The Z component of the vector describing the lines direction"; Rlength.Description = "The length of the line to be tested"; Ox.Required = true; Oy.Required = true; Oz.Required = true; Rx.Required = true; Ry.Required = true; Rz.Required = true; Rlength.Required = true; B0x = schema.AddExpressionProperty("B0x", "0.0"); B0y = schema.AddExpressionProperty("B0y", "0.0"); B0z = schema.AddExpressionProperty("B0z", "0.0"); B0x.DisplayName = "Box Minimum X"; B0y.DisplayName = "Box Minimum Y"; B0z.DisplayName = "Box Minimum Z"; B0x.Description = "The minimum X coordinate of the bounding box"; B0y.Description = "The minimum Y coordinate of the bounding box"; B0z.Description = "The minimum Z coordinate of the bounding box"; B0x.Required = true; B0y.Required = true; B0z.Required = true; B1x = schema.AddExpressionProperty("B1x", "0.0"); B1y = schema.AddExpressionProperty("B1y", "0.0"); B1z = schema.AddExpressionProperty("B1z", "0.0"); B1x.DisplayName = "Box Maximum X"; B1y.DisplayName = "Box Maximum Y"; B1z.DisplayName = "Box Maximum Z"; B1x.Description = "The maximum X coordinate of the bounding box"; B1y.Description = "The maximum Y coordinate of the bounding box"; B1z.Description = "The maximum Z coordinate of the bounding box"; B1x.Required = true; B1y.Required = true; B1z.Required = true; // Example of how to add an element property definition to the step. //pd = schema.AddElementProperty("UserElementName", UserElementDefinition.MY_ID); //pd.DisplayName = "UserElement Name"; //pd.Description = "The name of a UserElement element referenced by this step."; //pd.Required = true; }