/// <override></override> public override string GetTerminalName(TerminalId terminalId) { if (terminalId <= 0 || terminalId > maxTerminalId) { throw new ArgumentOutOfRangeException("terminalId"); } string result; if (terminals.TryGetValue(terminalId, out result)) { return(result); } else { throw new ArgumentOutOfRangeException("terminalId"); } }
/// <override></override> public override string GetTerminalName(TerminalId terminalId) { if (terminalId < 0 || terminalId > _maxTerminalId) { throw new ArgumentOutOfRangeException("terminalId"); } string result; if (_terminals.TryGetValue(terminalId, out result)) { return(result); } else { throw new NShapeException(Dataweb.NShape.Properties.Resources.MessageFmt_NoTerminalNameFoundForTerminal0, terminalId); } }
/// <ToBeCompleted></ToBeCompleted> public abstract void Disconnect(TerminalId ownTerminalId, IModelObject targetConnector, TerminalId targetTerminalId);
/// <ToBeCompleted></ToBeCompleted> public GenericModelObjectType(string name, string namespaceName, string categoryTitle, CreateModelObjectDelegate createModelObjectDelegate, GetPropertyDefinitionsDelegate getPropertyDefinitionsDelegate, TerminalId maxTerminalId) : base(name, namespaceName, categoryTitle, createModelObjectDelegate, getPropertyDefinitionsDelegate) { this.maxTerminalId = maxTerminalId; for (int i = 1; i <= maxTerminalId; ++i) { terminals.Add(i, "Terminal " + Convert.ToString(i)); } }
/// <summary> /// Retreives the name of a terminal. /// </summary> public abstract string GetTerminalName(TerminalId terminalId);
/// <override></override> public override void Disconnect(TerminalId ownTerminalId, IModelObject targetConnector, TerminalId targetTerminalId) { throw new NotImplementedException("Not yet implemented"); }