Example #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)
 {
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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)
 {
 }
Example #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)
 {
 }
Example #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)
 {
 }
Example #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)
 {
 }
Example #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));
 }
Example #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)
 {
 }
Example #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));
 }
Example #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)
 {
 }
Example #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)
 {
 }
Example #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));
 }
Example #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)
 {
 }
Example #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)
 {
 }
Example #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)
 {
 }
Example #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));
 }
Example #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));
 }
Example #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));
 }
Example #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)
 {
 }
Example #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));
 }
 /// <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)
 {
 }
Example #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));
 }
 /// <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));
 }
Example #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)
 {
 }
Example #27
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 Argument(Parent, Model));
 }
Example #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));
 }
Example #29
0
 /// <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));
 }
Example #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)
 {
 }