/// <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(); }
public DestinationID(DestinationID value) { /// Initiliaze the protected variables m_parent = null; m_SubFields = 0; /// Copy the values this.m_SubFields = value.m_SubFields; }
public SendRec() { m_PresenceVector = 0; m_ReliableDelivery = 0; m_DestinationID = new DestinationID(); m_SourceID = new SourceID(); m_Priority = 0; m_MessagePayload = new MessagePayload(); }
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); }
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(); }
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(); }
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; }
/* * @param value - the ID this should be compared to. */ public bool notEquals(DestinationID value) { return(m_SubFields != value.getSubFields()); }
public bool isEqual(DestinationID value) { return(this.m_SubFields == value.getSubsystemID()); }
public bool isEqual(DestinationID value) { return (this.m_SubFields == value.getSubsystemID()); }
/* * @param the value the destination should be set to. */ public void setDestinationID(DestinationID value) { m_DestinationID.setAs(value); }
public DestinationID(DestinationID value) { m_SubFields = value.getSubFields(); }
public void setDestinationID(DestinationID value) { m_DestinationID = value; setParentPresenceVector(); }
public BroadcastLocal.Body.BroadcastRec.DestinationID setDestinationID(DestinationID value) { this.m_SubFields = value.m_SubFields; return this; }
public bool notEquals(DestinationID value) { return !this.isEqual(value); }
/* * @param value - the value this ID should be set to. */ public void setAs(DestinationID value) { this.m_SubFields = value.getSubFields(); }
public BroadcastGlobal.Body.BroadcastRec.DestinationID setDestinationID(DestinationID value) { this.m_SubFields = value.m_SubFields; return(this); }
/* * @param value - the ID this should be compared to. */ public bool notEquals(DestinationID value) { return (m_SubFields != value.getSubFields()); }
public bool notEquals(DestinationID value) { return(!this.isEqual(value)); }