/// <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); } }
public void notifyClients(Symbol message, String msgdata, String msg) { foreach (IClient c in clientList) { c.notify(message, msgdata, msg); } }
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); }
public override bool isA(Symbol classname) { Symbol s = SymbolManager.theSymbolManager.registerSymbol("ComputeNode"); if (s == classname) return true; else return base.isA(classname); }
/// <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; }
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; }
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(); }
public virtual bool setLabelString(String label) { labelSymbol = SymbolManager.theSymbolManager.registerSymbol(label); if (cdb != null) cdb.changeLabel(); if (getStandIn() != null) getStandIn().notifyLabelChange(); return true; }
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"); }
// // 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; } }
public Definition(Symbol k) { key = k; }
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"); }
public static bool RemoveTool(Symbol cat, Symbol tool) { return true; }
// Below are not implemented yet. public static bool AddTool(Symbol cat, Symbol tool, Object ptr) { return true; }
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; } }
public virtual bool isA(Symbol classname) { throw new Exception("Not Yet Implemented"); }
public virtual void notify(Symbol message, String msgdata) { notify(message, msgdata, null); }
public Definition() { key = new Symbol(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); }
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); }
public override bool isA(Symbol classname) { throw new Exception("Not Yet Implemented"); return base.isA(classname); }
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; }
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); }