コード例 #1
0
 //-----------------------
 public CRF_Consumer(string aName, string aLabel, Color aColor, double Demand)
     : base(aName, aLabel, aColor)
 {
     FValue = Demand;
     // OK Setup Resources using Flux List to avoid confusion between Resources and Consumers
     FResources = FFluxs;
 }
コード例 #2
0
 //-----------------------
 public CRF_Resource(string aName, string aLabel, Color aColor, double AvailableSupply)
     : base(aName, aLabel, aColor)
 {
     FValue = AvailableSupply;
     // OK Setup Consumers using Flux List to avoid confusion between Resources and Consumers
     FConsumerList = FFluxs;
 }
コード例 #3
0
        ///-------------------------------------------------------------------------------------------------
        /// <summary>   Constructor. </summary>
        ///
        /// <param name="aName">    The name. This is the local named used for object identification, best if unique, but not neccesary, best if short </param>
        ///-------------------------------------------------------------------------------------------------

        public CRF_DataItem(string aName)
            : base()
        {
            FFluxs = new CRF_FluxList(this);
            FName  = aName;
            FLabel = aName;
        }
コード例 #4
0
        ///-------------------------------------------------------------------------------------------------
        /// <summary>   Constructor. </summary>
        ///
        /// <param name="aName">    The name. </param>
        /// <param name="aLabel">   The label. This is the string that will be used to label this item in visualizations</param>
        /// <param name="aColor">   The color. This will be the color of the label</param>
        ///-------------------------------------------------------------------------------------------------

        public CRF_DataItem(string aName, string aLabel, Color aColor)
            : base()
        {
            FFluxs = new CRF_FluxList(this);
            FName  = aName;
            FLabel = aLabel;
            FColor = aColor;
        }
コード例 #5
0
 /// <summary>   Default constructor. </summary>
 public CRF_DataItem()
 {
     FFluxs = new CRF_FluxList(this);
     FName  = FKey.ToString();
     FLabel = FName;
 }
コード例 #6
0
 //-----------------------
 public CRF_Consumer(string aName)
     : base(aName)
 {
     // OK Setup Resources using Flux List to avoid confusion between Resources and Consumers
     FResources = FFluxs;
 }
コード例 #7
0
 //-----------------------
 public CRF_Resource(string aName, string aLabel, Color aColor)
     : base(aName, aLabel, aColor)
 {
     // OK Setup Consumers using Flux List to avoid confusion between Resources and Consumers
     FConsumerList = FFluxs;
 }