/// <summary>
		/// Display analysis results in the list box
		/// </summary>
		public void DisplayOutput()
		{
			ITable naTable = m_NAContext.NAClasses.get_ItemByName("ODLines") as ITable;
			if (naTable == null)
				lstOutput.Items.Add("Impossible to get the ODLines table");

			lstOutput.Items.Add("Number of destinations found: " + naTable.RowCount(null).ToString());
			lstOutput.Items.Add("");

			if (naTable.RowCount(null) > 0)
			{
				lstOutput.Items.Add("OriginID, DestinationID, DestinationRank, Total_" + comboCostAttribute.Text);
				double total_impedance;
				long OriginID;
				long DestinationID;
				long DestinationRank;

				ICursor naCursor = naTable.Search(null, false);
				IRow naRow = naCursor.NextRow();
				while (naRow != null)
				{
					OriginID = long.Parse(naRow.get_Value(naTable.FindField("OriginID")).ToString());
					DestinationID = long.Parse(naRow.get_Value(naTable.FindField("DestinationID")).ToString());
					DestinationRank = long.Parse(naRow.get_Value(naTable.FindField("DestinationRank")).ToString());
					total_impedance = double.Parse(naRow.get_Value(naTable.FindField("Total_" + comboCostAttribute.Text)).ToString());
					lstOutput.Items.Add(OriginID.ToString() + ", " + DestinationID.ToString() + ", " +
						DestinationRank.ToString() + ", " + total_impedance.ToString("#0.00"));

					naRow = naCursor.NextRow();
				}
			}

			lstOutput.Refresh();
		}
Пример #2
0
                    public DestinationID(DestinationID value)
                    {
                        /// Initiliaze the protected variables
                        m_parent    = null;
                        m_SubFields = 0;

                        /// Copy the values
                        this.m_SubFields = value.m_SubFields;
                    }
Пример #3
0
 public SendRec()
 {
     m_PresenceVector   = 0;
     m_ReliableDelivery = 0;
     m_DestinationID    = new DestinationID();
     m_SourceID         = new SourceID();
     m_Priority         = 0;
     m_MessagePayload   = new MessagePayload();
 }
Пример #4
0
 public BroadcastRec()
 {
     m_parent         = null;
     m_PresenceVector = 0;
     m_DestinationID  = new DestinationID();
     m_DestinationID.setParent(this);
     m_SourceID = new SourceID();
     m_SourceID.setParent(this);
     m_Priority       = 0;
     m_MessagePayload = new MessagePayload();
     m_MessagePayload.setParent(this);
 }
Пример #5
0
                public SendRec(SendRec value)
                {
                    m_DestinationID  = new DestinationID();
                    m_SourceID       = new SourceID();
                    m_MessagePayload = new MessagePayload();

                    // Copy the values
                    m_PresenceVector   = value.getPresenceVector();
                    m_ReliableDelivery = value.getReliableDelivery();
                    m_DestinationID    = value.getDestinationID();
                    m_SourceID         = value.getSourceID();
                    m_Priority         = value.getPriority();
                    m_MessagePayload   = value.getMessagePayload();
                }
Пример #6
0
                public BroadcastRec(BroadcastRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent         = null;
                    m_PresenceVector = 0;
                    m_DestinationID  = new DestinationID();
                    m_DestinationID.setParent(this);
                    m_SourceID = new SourceID();
                    m_SourceID.setParent(this);
                    m_Priority       = 0;
                    m_MessagePayload = new MessagePayload();
                    m_MessagePayload.setParent(this);

                    /// Copy the values
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID  = value.getDestinationID();
                    m_SourceID       = value.getSourceID();
                    m_Priority       = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();
                }
Пример #7
0
                public BroadcastLocal.Body.BroadcastRec setBroadcastRec(BroadcastRec value)
                {
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID = value.getDestinationID();
                    m_SourceID = value.getSourceID();
                    m_Priority = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();

                    return this;
                }
Пример #8
0
 /*
  * @param value - the ID this should be compared to.
  */
 public bool notEquals(DestinationID value)
 {
     return(m_SubFields != value.getSubFields());
 }
Пример #9
0
 public bool isEqual(DestinationID value)
 {
     return(this.m_SubFields == value.getSubsystemID());
 }
Пример #10
0
                    public DestinationID(DestinationID value)
                    {
                        /// Initiliaze the protected variables
                        m_parent = null;
                        m_SubFields = 0;

                        /// Copy the values
                        this.m_SubFields = value.m_SubFields;
                    }
Пример #11
0
 public bool isEqual(DestinationID value)
 {
     return (this.m_SubFields == value.getSubsystemID());
 }
Пример #12
0
                public SendRec(SendRec value)
                {
                    m_DestinationID = new DestinationID();
                    m_SourceID = new SourceID();
                    m_MessagePayload = new MessagePayload();

                    // Copy the values
                    m_PresenceVector = value.getPresenceVector();
                    m_ReliableDelivery = value.getReliableDelivery();
                    m_DestinationID = value.getDestinationID();
                    m_SourceID = value.getSourceID();
                    m_Priority = value.getPriority();
                    m_MessagePayload = value.getMessagePayload();
                }
Пример #13
0
 public SendRec()
 {
     m_PresenceVector = 0;
     m_ReliableDelivery = 0;
     m_DestinationID = new DestinationID();
     m_SourceID = new SourceID();
     m_Priority = 0;
     m_MessagePayload = new MessagePayload();
 }
Пример #14
0
 /*
  * @param the value the destination should be set to.
  */
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID.setAs(value);
 }
Пример #15
0
 public DestinationID(DestinationID value)
 {
     m_SubFields = value.getSubFields();
 }
Пример #16
0
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID = value;
     setParentPresenceVector();
 }
Пример #17
0
                    public BroadcastLocal.Body.BroadcastRec.DestinationID setDestinationID(DestinationID value)
                    {
                        this.m_SubFields = value.m_SubFields;

                        return this;
                    }
Пример #18
0
 /*
 * @param the value the destination should be set to.
 */
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID.setAs(value);
 }
Пример #19
0
 public bool notEquals(DestinationID value)
 {
     return !this.isEqual(value);
 }
Пример #20
0
 /*
 * @param value - the value this ID should be set to.
 */
 public void setAs(DestinationID value)
 {
     this.m_SubFields = value.getSubFields();
 }
Пример #21
0
                    public BroadcastGlobal.Body.BroadcastRec.DestinationID  setDestinationID(DestinationID value)
                    {
                        this.m_SubFields = value.m_SubFields;

                        return(this);
                    }
Пример #22
0
 /*
 * @param value - the ID this should be compared to.
 */
 public bool notEquals(DestinationID value)
 {
     return (m_SubFields != value.getSubFields());
 }
Пример #23
0
 public bool notEquals(DestinationID value)
 {
     return(!this.isEqual(value));
 }
Пример #24
0
 public DestinationID(DestinationID value)
 {
     m_SubFields = value.getSubFields();
 }
Пример #25
0
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID = value;
     setParentPresenceVector();
 }
Пример #26
0
 public BroadcastRec()
 {
     m_parent = null;
     m_PresenceVector = 0;
     m_DestinationID = new DestinationID();
     m_DestinationID.setParent(this);
     m_SourceID = new SourceID();
     m_SourceID.setParent(this);
     m_Priority = 0;
     m_MessagePayload = new MessagePayload();
     m_MessagePayload.setParent(this);
 }
Пример #27
0
                public BroadcastRec(BroadcastRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent = null;
                    m_PresenceVector = 0;
                    m_DestinationID = new DestinationID();
                    m_DestinationID.setParent(this);
                    m_SourceID = new SourceID();
                    m_SourceID.setParent(this);
                    m_Priority = 0;
                    m_MessagePayload = new MessagePayload();
                    m_MessagePayload.setParent(this);

                    /// Copy the values
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID = value.getDestinationID();
                    m_SourceID = value.getSourceID();
                    m_Priority = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();
                }
Пример #28
0
 /*
  * @param value - the value this ID should be set to.
  */
 public void setAs(DestinationID value)
 {
     this.m_SubFields = value.getSubFields();
 }