示例#1
0
 /// <summary>
 /// Sends the notification message to all the registered clients.
 /// </summary>
 /// <param name="message"></param>
 public void notifyClients(Symbol message)
 {
     foreach (IClient c in clientList)
     {
         c.notify(message);
     }
 }
示例#2
0
 public void notifyClients(Symbol message, String msgdata, String msg)
 {
     foreach (IClient c in clientList)
     {
         c.notify(message, msgdata, msg);
     }
 }
示例#3
0
 protected GroupManager(Network network, Symbol groupID)
 {
     app = DXApplication.theDXApplication;
     this.network = network;
     setDirty();
     this.groupID = groupID;
 }
 public override bool isA(Symbol classname)
 {
     Symbol s = SymbolManager.theSymbolManager.registerSymbol(ClassTransmitterNode);
     if (s == classname)
         return true;
     else
         return base.isA(classname);
 }
示例#5
0
 public override bool isA(Symbol classname)
 {
     Symbol s = SymbolManager.theSymbolManager.registerSymbol("ComputeNode");
     if (s == classname)
         return true;
     else
         return base.isA(classname);
 }
示例#6
0
 /// <summary>
 /// Determine if this node is a node of the given class
 /// </summary>
 /// <param name="classname"></param>
 /// <returns></returns>
 public virtual bool IsA(Symbol classname)
 {
     Symbol s = SymbolManager.theSymbolManager.registerSymbol("MacroNode");
     if (s == classname)
         return true;
     else
         return base.isA(classname);
 }
 public InteractorStyle(Style s, String n, String javaStyle, InteractorAllocator ia)
 {
     style = s;
     name = SymbolManager.theSymbolManager.registerSymbol(n);
     allocateInteractor = ia;
     isDefault = false;
     interactorName = null;
     this.javaStyle = javaStyle;
 }
示例#8
0
        static Command()
        {
            if (!CommandClassInitialized)
            {
                if (SymbolManager.theSymbolManager == null)
                {
                    throw new Exception("theSymbolManager not initialized");
                }

                MsgActivate = SymbolManager.theSymbolManager.registerSymbol("Activate");
                MsgDeactivate = SymbolManager.theSymbolManager.registerSymbol("Deactivate");
                MsgDisassociate = SymbolManager.theSymbolManager.registerSymbol("Disassociate");
                MsgBeginExecuting = SymbolManager.theSymbolManager.registerSymbol("BeginExecuting");
                MsgEndExecuting = SymbolManager.theSymbolManager.registerSymbol("EndExecuting");

                CommandClassInitialized = true;
            }
        }
 public ParameterDefinition(Symbol key)
     : base(key)
 {
     description = null;
     typeStrings = null;
     descriptive_default = false;
     default_value = null;
     is_input = false;
     required = false;
     default_visibility = true;
     viewable = true;
     Debug.Assert(Cacheability.OutputFullyCached == Cacheability.InputDerivesOutputCacheTag);
     defaultCacheability = Cacheability.OutputFullyCached;
     writeableCacheability = true;
     rerouteOutput = -1;
     dummy = false;
     valueOptions = null;
 }
示例#10
0
        public virtual void setGroupName(GroupRecord groupRec, Symbol groupID)
        {
            GroupRecord grec = null;

            if (groups != null)
                groups.TryGetValue(groupID, out grec);
            else if (groupRec != null)
                groups = new Dictionary<Symbol, GroupRecord>();

            if (grec != null)
            {
                if (groupRec != null)
                    groups[groupID] = groupRec;
                else
                    groups.Remove(groupID);
            }
            else if (groupRec != null)
            {
                groups.Add(groupID, groupRec);
            }

            getNetwork().setDirty();
        }
示例#11
0
 public virtual bool setLabelString(String label)
 {
     labelSymbol = SymbolManager.theSymbolManager.registerSymbol(label);
     if (cdb != null)
         cdb.changeLabel();
     if (getStandIn() != null)
         getStandIn().notifyLabelChange();
     return true;
 }
示例#12
0
        static DXApplication()
        {
            if (SymbolManager.theSymbolManager == null)
                SymbolManager.theSymbolManager = new SymbolManager();

            MsgExecute = SymbolManager.theSymbolManager.registerSymbol("Execute");
            MsgStandBy = SymbolManager.theSymbolManager.registerSymbol("StandBy");
            MsgExecuteDone = SymbolManager.theSymbolManager.registerSymbol("ExecuteDone");
            MsgServerDisconnected = SymbolManager.theSymbolManager.registerSymbol("ServerDisconnected");
            MsgPanelChanged = SymbolManager.theSymbolManager.registerSymbol("PanelChanged");
        }
示例#13
0
 //
 // Determine if this node is a node of the given class
 //
 public override bool isA(Symbol classname)
 {
     throw new Exception("not implemented yet");
 }
 public virtual void notify(Symbol message, String msgdata, String msg)
 {
     if (message == Command.MsgActivate)
         this.Active = true;
     else if (message == Command.MsgDeactivate)
         this.Active = false;
     else if (message == Command.MsgDisassociate)
     {
         if (menuItem != null)
             menuItem.Click -= command.executeEvent;
         this.command = null;
     }
 }
示例#15
0
 public Definition(Symbol k)
 {
     key = k;
 }
示例#16
0
        public String getGroupName(Symbol groupID)
        {
            GroupRecord grec = null;
            if (groups == null) return null;

            groups.TryGetValue(groupID, out grec);
            if (grec == null) return null;

            return grec.Name;
        }
 public override bool IsA(Symbol classname)
 {
     throw new Exception("Not Yet Implemented");
 }
示例#18
0
 public static bool RemoveTool(Symbol cat, Symbol tool)
 {
     return true;
 }
示例#19
0
 // Below are not implemented yet.
 public static bool AddTool(Symbol cat, Symbol tool, Object ptr)
 {
     return true;
 }
示例#20
0
        static BaseApplication()
        {
            if (!ApplicationClassInitialized)
            {
                if (SymbolManager.theSymbolManager == null)
                {
                    StackFrame stackFrame = new StackFrame();
                    MethodBase methodBase = stackFrame.GetMethod();
                    throw new Exception(string.Format("{0}: symbolManager not init'd", methodBase));
                }

                MsgCreate = SymbolManager.theSymbolManager.registerSymbol("Create");
                MsgManage = SymbolManager.theSymbolManager.registerSymbol("Manage");
                MsgUnmanage = SymbolManager.theSymbolManager.registerSymbol("Unmanage");
                MsgSetBusyCursor = SymbolManager.theSymbolManager.registerSymbol("SetBusyCursor");
                MsgResetCursor = SymbolManager.theSymbolManager.registerSymbol("ResetCursor");
                MsgManageByLeafClassName = SymbolManager.theSymbolManager.registerSymbol("ManageByLeafClassName");
                MsgUnmanageByLeafClassName = SymbolManager.theSymbolManager.registerSymbol("UnmanageByLeafClassName");
                MsgManageByTitle = SymbolManager.theSymbolManager.registerSymbol("ManageByTitle");
                MsgUnmanageByTitle = SymbolManager.theSymbolManager.registerSymbol("UnmanageByTitle");

                ApplicationClassInitialized = true;
            }
        }
示例#21
0
 public virtual bool isA(Symbol classname)
 {
     throw new Exception("Not Yet Implemented");
 }
 public virtual void notify(Symbol message, String msgdata)
 {
     notify(message, msgdata, null);
 }
示例#23
0
 public Definition()
 {
     key = new Symbol(0);
 }
示例#24
0
        public void addToGroup(String group, Symbol groupID)
        {
            String groupStr = SymbolManager.theSymbolManager.getSymbolString(groupID);
            GroupManager gmgr = getNetwork().getGroupManagers()[groupStr];
            Debug.Assert(gmgr != null);

            if (!gmgr.hasGroup(group))
                gmgr.createGroup(group, getNetwork());

            GroupRecord grec = gmgr.getGroup(group);
            Debug.Assert(grec != null);

            setGroupName(grec, groupID);
        }
示例#25
0
 public Symbol setName(String name)
 {
     key = SymbolManager.theSymbolManager.registerSymbol(name);
     return key;
 }
 // Determine if this node is a node of the given class
 public override bool isA(Symbol classname)
 {
     return base.isA(classname);
 }
示例#27
0
 public override bool isA(Symbol classname)
 {
     throw new Exception("Not Yet Implemented");
     return base.isA(classname);
 }
示例#28
0
 public Node(NodeDefinition nd, Network net, int inst)
 {
     network = net;
     instanceNumber = inst;
     setDefinition(nd);
     vpe_xpos = vpe_ypos = 0;
     labelSymbol = Symbol.zero;
     standin = null;
     cdb = null;
     moduleMessageId = null;
     nodeCacheability = nd.DefaultCacheability;
     buildParameterLists();
     marked = false;
     layout_information = null;
 }
示例#29
0
 public String getSymbolString(Symbol symbol)
 {
     String val;
     if (ht.TryGetValue(symbol.Val, out val))
         return val;
     return null;
 }
 public virtual void notify(Symbol message)
 {
     notify(message, null, null);
 }