|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.apps.Viewers.Event.JHDLAbstractWidgetEventGenerator
byucc.jhdl.apps.Broker.Broker
Field Summary | |
static java.lang.String |
CLITYPE
|
java.util.ArrayList |
currentCells
|
java.util.ArrayList |
currentWires
|
protected boolean |
fromWidget
|
protected HWSystem |
hw
|
protected JHDLHostWidgetInterface |
hwi
Broker's copy of the JHDLHostWidgetInterface, so that it can send it to the new views that are made. |
protected CLInterpreter |
interp
|
protected java.util.HashSet |
openCustomViews
Used to remember which custom views are open now |
protected java.util.Hashtable |
openMemories
Used to remember which memory views are open now |
protected java.util.Hashtable |
openSchematics
Used to remember which schematic views are open now |
protected SchematicActionListener |
sl
|
protected SmartSchematicFrame |
ssf
A smart schematic frame (tabbed pane viewer for schematics) |
protected SchematicViewerPanel |
svp
|
protected TreeBrowserPanel |
tbp
|
protected boolean |
useTabs
If we used the tabbed pane then this will be true, otherwise false |
protected WavesWireManager |
waves
|
Constructor Summary | |
Broker(HWSystem hw,
CLInterpreter interp)
|
|
Broker(HWSystem hw,
CLInterpreter interp,
boolean tabbed)
|
Method Summary | |
boolean |
addWavesWatch(Wire w)
|
boolean |
behavModel(Cell cell,
boolean enable,
boolean force)
turn on or off behavioral model of a cell. |
void |
closeViews()
|
void |
cycleSimulator(int cycles)
|
CLInterpreter |
getInterp()
|
void |
loadModule(java.lang.String className)
|
void |
newMemoryViewerFrame(Cell c)
|
void |
newSchematicView(Cell c)
|
void |
print(Cell cell)
|
protected void |
registerCLICommands(HWSystem hw,
CLInterpreter interp)
Subclasses may use this method to override the default behavior of the broker's CLI commands |
void |
registerCustomViewer(java.awt.Window win)
|
void |
registerJHDLHostWidgetInterface(JHDLHostWidgetInterface hwi)
Method used to pass the Broker a copy of the JHDLHostWidgetInterface. |
void |
registerSchematicActionListener(SchematicActionListener sl)
Deprecated. |
void |
removeWavesWatch(Wire w)
|
void |
resetSimulator()
|
void |
setSchematicViewerPanel(SchematicViewerPanel svp)
|
void |
setTabs(boolean tabbed)
set tabs in here |
void |
setTreeBrowserPanel(TreeBrowserPanel tbp)
|
void |
setWavesWireManager(WavesWireManager waves)
|
void |
stepSimulator(int steps)
|
Methods inherited from class byucc.jhdl.apps.Viewers.Event.JHDLAbstractWidgetEventGenerator |
addJHDLWidgetEventListener, fireJHDLWidgetEvent, removeJHDLWidgetEventListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.ArrayList currentCells
public java.util.ArrayList currentWires
protected java.util.Hashtable openSchematics
protected java.util.Hashtable openMemories
protected java.util.HashSet openCustomViews
protected boolean useTabs
protected SmartSchematicFrame ssf
protected CLInterpreter interp
public static final java.lang.String CLITYPE
protected boolean fromWidget
protected HWSystem hw
protected WavesWireManager waves
protected SchematicViewerPanel svp
protected TreeBrowserPanel tbp
protected SchematicActionListener sl
protected JHDLHostWidgetInterface hwi
Constructor Detail |
public Broker(HWSystem hw, CLInterpreter interp, boolean tabbed)
public Broker(HWSystem hw, CLInterpreter interp)
Method Detail |
public void setTabs(boolean tabbed)
public CLInterpreter getInterp()
protected void registerCLICommands(HWSystem hw, CLInterpreter interp)
public void setWavesWireManager(WavesWireManager waves)
public void setSchematicViewerPanel(SchematicViewerPanel svp)
public void setTreeBrowserPanel(TreeBrowserPanel tbp)
public void registerSchematicActionListener(SchematicActionListener sl)
public void registerJHDLHostWidgetInterface(JHDLHostWidgetInterface hwi)
hwi
- The JHDLHostWidgetInterface used for creating views
like a SchematicCanvas or WavesViewer.public void registerCustomViewer(java.awt.Window win)
public boolean behavModel(Cell cell, boolean enable, boolean force) throws BrokerException
cell
- the cell to changeenable
- if true, behavioral modeling will be turned on,
otherwise will be turned offforce
- if simulation has already begun, this must be true
to force the switch. Also, if it is true, and simulation has
begun, this causes the simulation to be reset as well.
BrokerException
- if simulation has started already and
the force parameter is not true.public void cycleSimulator(int cycles)
public void stepSimulator(int steps)
public void resetSimulator()
public void newSchematicView(Cell c)
public void print(Cell cell)
public void newMemoryViewerFrame(Cell c)
public boolean addWavesWatch(Wire w)
public void removeWavesWatch(Wire w)
public void closeViews()
public void loadModule(java.lang.String className)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |