19 using System.ComponentModel;
21 namespace TraceLab.Components.Library.Helpers
23 [Component(Name =
"Incrementer By Specified Value",
24 Description =
"Increments integer by specified value",
27 ConfigurationType=typeof(IncrementerConfig))]
28 [IOSpec(IOSpecType.Input,
"integer", typeof(
int))]
29 [IOSpec(IOSpecType.Output,
"integer", typeof(
int))]
30 [Tag(
"Helper components")]
36 Configuration = config;
43 int integer = (int)Workspace.Load(
"integer");
44 integer += config.IncrementBy;
45 Logger.Info(
"Value incremented to {0}", integer);
46 Workspace.Store(
"integer", integer);
52 [DisplayName(
"Increment by value")]
53 public int IncrementBy