示例#1
0
 /// <summary>
 /// Abstract base class for XMPP actors with custom endpoint.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <param name="InstanceIndex">Instance index.</param>
 /// <param name="InstanceId">ID of instance</param>
 public XmppActorEndpoint(ISimulationNode Parent, Model Model, int InstanceIndex, string InstanceId)
     : base(Parent, Model, InstanceIndex, InstanceId)
 {
 }
示例#2
0
文件: Argument.cs 项目: ewin66/ComSim
 /// <summary>
 /// Defines an argument in an action.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <param name="Name">Name of argument.</param>
 /// <param name="Value">Argument value.</param>
 public Argument(ISimulationNode Parent, Model Model, string Name, TimeSpan Value)
     : base(Parent, Model)
 {
     this.name = Name;
     this.AddChild(new Time(this, Model, Value));
 }
示例#3
0
文件: Argument.cs 项目: ewin66/ComSim
 /// <summary>
 /// Defines an argument in an action.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public Argument(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#4
0
 /// <summary>
 /// Sets a variable value when an event is triggered.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public SetVariable(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
 /// <summary>
 /// Synchronization Client XMPP extension
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public SynchronizationClientExtension(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#6
0
 /// <summary>
 /// Sends a custom IQ response to a recipient
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public Respond(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#7
0
 /// <summary>
 /// Controls an actuator by setting control parameters.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public ControlActuator(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#8
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new CombinedSampleGraph(Parent, Model));
 }
示例#9
0
 /// <summary>
 /// Decrements a counter.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public Dec(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#10
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new Otherwise(Parent, Model));
 }
示例#11
0
 /// <summary>
 /// Combines sample graphs
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public CombinedSampleGraph(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#12
0
 /// <summary>
 /// Represents a condition that is always true.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public Otherwise(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#13
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new Measurements(Parent, Model));
 }
示例#14
0
 /// <summary>
 /// Container for measurement configuration.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public Measurements(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#15
0
 /// <summary>
 /// Stochastic Event
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public StochasticEvent(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#16
0
 /// <summary>
 /// Reports sensor data fields.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public ReportFields(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#17
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new StochasticEvent(Parent, Model));
 }
示例#18
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new ReportFields(Parent, Model));
 }
示例#19
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new Respond(Parent, Model));
 }
示例#20
0
 /// <summary>
 /// While Loop construct
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public While(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#21
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new ControlActuator(Parent, Model));
 }
示例#22
0
 /// <summary>
 /// Abstract base class for XMPP extensions.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public XmppExtension(ISimulationNode Parent, Model Model)
     : this(Parent, Model, 0, string.Empty)
 {
 }
示例#23
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new SetVariable(Parent, Model));
 }
示例#24
0
 /// <summary>
 /// Abstract base class for XMPP extensions.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <param name="InstanceIndex">Instance index.</param>
 /// <param name="InstanceId">ID of instance</param>
 public XmppExtension(ISimulationNode Parent, Model Model, int InstanceIndex, string InstanceId)
     : base(Parent, Model)
 {
     this.instanceIndex = InstanceIndex;
     this.instanceId    = InstanceId;
 }
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new SynchronizationClientExtension(Parent, Model));
 }
示例#26
0
 /// <summary>
 /// Chi-square distribution
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public ChiSquare(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }
示例#27
0
文件: Argument.cs 项目: ewin66/ComSim
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new Argument(Parent, Model));
 }
示例#28
0
 /// <summary>
 /// Creates a new instance of the node.
 /// </summary>
 /// <param name="Parent">Parent node.</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <returns>New instance</returns>
 public override ISimulationNode Create(ISimulationNode Parent, Model Model)
 {
     return(new ChiSquare(Parent, Model));
 }
示例#29
0
文件: Argument.cs 项目: ewin66/ComSim
 /// <summary>
 /// Defines an argument in an action.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 /// <param name="Name">Name of argument.</param>
 /// <param name="Value">Argument value.</param>
 public Argument(ISimulationNode Parent, Model Model, string Name, Waher.Script.Expression Value)
     : base(Parent, Model)
 {
     this.name = Name;
     this.AddChild(new Script(this, Model, Value));
 }
示例#30
0
 /// <summary>
 /// Abstract base class for XMPP actors with custom endpoint.
 /// </summary>
 /// <param name="Parent">Parent node</param>
 /// <param name="Model">Model in which the node is defined.</param>
 public XmppActorEndpoint(ISimulationNode Parent, Model Model)
     : base(Parent, Model)
 {
 }