Exemplo n.º 1
0
        /// <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");
            }
        }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
 /// <ToBeCompleted></ToBeCompleted>
 public abstract void Disconnect(TerminalId ownTerminalId, IModelObject targetConnector, TerminalId targetTerminalId);
Exemplo n.º 4
0
 /// <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));
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Retreives the name of a terminal.
 /// </summary>
 public abstract string GetTerminalName(TerminalId terminalId);
Exemplo n.º 6
0
 /// <override></override>
 public override void Disconnect(TerminalId ownTerminalId, IModelObject targetConnector, TerminalId targetTerminalId)
 {
     throw new NotImplementedException("Not yet implemented");
 }