/// <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();
		}
Esempio n. 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;
                    }
Esempio n. 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();
 }
Esempio n. 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);
 }
Esempio n. 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();
                }
Esempio n. 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();
                }
Esempio n. 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;
                }
Esempio n. 8
0
 /*
  * @param value - the ID this should be compared to.
  */
 public bool notEquals(DestinationID value)
 {
     return(m_SubFields != value.getSubFields());
 }
Esempio n. 9
0
 public bool isEqual(DestinationID value)
 {
     return(this.m_SubFields == value.getSubsystemID());
 }
Esempio n. 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;
                    }
Esempio n. 11
0
 public bool isEqual(DestinationID value)
 {
     return (this.m_SubFields == value.getSubsystemID());
 }
Esempio n. 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();
                }
Esempio n. 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();
 }
Esempio n. 14
0
 /*
  * @param the value the destination should be set to.
  */
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID.setAs(value);
 }
Esempio n. 15
0
 public DestinationID(DestinationID value)
 {
     m_SubFields = value.getSubFields();
 }
Esempio n. 16
0
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID = value;
     setParentPresenceVector();
 }
Esempio n. 17
0
                    public BroadcastLocal.Body.BroadcastRec.DestinationID setDestinationID(DestinationID value)
                    {
                        this.m_SubFields = value.m_SubFields;

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

                        return(this);
                    }
Esempio n. 22
0
 /*
 * @param value - the ID this should be compared to.
 */
 public bool notEquals(DestinationID value)
 {
     return (m_SubFields != value.getSubFields());
 }
Esempio n. 23
0
 public bool notEquals(DestinationID value)
 {
     return(!this.isEqual(value));
 }
Esempio n. 24
0
 public DestinationID(DestinationID value)
 {
     m_SubFields = value.getSubFields();
 }
Esempio n. 25
0
 public void setDestinationID(DestinationID value)
 {
     m_DestinationID = value;
     setParentPresenceVector();
 }
Esempio n. 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);
 }
Esempio n. 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();
                }
Esempio n. 28
0
 /*
  * @param value - the value this ID should be set to.
  */
 public void setAs(DestinationID value)
 {
     this.m_SubFields = value.getSubFields();
 }