byucc.jhdl.apps.Broker
Class Broker

java.lang.Object
  extended bybyucc.jhdl.apps.Viewers.Event.JHDLAbstractWidgetEventGenerator
      extended bybyucc.jhdl.apps.Broker.Broker
All Implemented Interfaces:
JHDLWidgetEventGenerator
Direct Known Subclasses:
InternalBroker

public class Broker
extends JHDLAbstractWidgetEventGenerator


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

currentCells

public java.util.ArrayList currentCells

currentWires

public java.util.ArrayList currentWires

openSchematics

protected java.util.Hashtable openSchematics
Used to remember which schematic views are open now


openMemories

protected java.util.Hashtable openMemories
Used to remember which memory views are open now


openCustomViews

protected java.util.HashSet openCustomViews
Used to remember which custom views are open now


useTabs

protected boolean useTabs
If we used the tabbed pane then this will be true, otherwise false


ssf

protected SmartSchematicFrame ssf
A smart schematic frame (tabbed pane viewer for schematics)


interp

protected CLInterpreter interp

CLITYPE

public static final java.lang.String CLITYPE
See Also:
Constant Field Values

fromWidget

protected boolean fromWidget

hw

protected HWSystem hw

waves

protected WavesWireManager waves

svp

protected SchematicViewerPanel svp

tbp

protected TreeBrowserPanel tbp

sl

protected SchematicActionListener sl

hwi

protected JHDLHostWidgetInterface hwi
Broker's copy of the JHDLHostWidgetInterface, so that it can send it to the new views that are made.

Constructor Detail

Broker

public Broker(HWSystem hw,
              CLInterpreter interp,
              boolean tabbed)

Broker

public Broker(HWSystem hw,
              CLInterpreter interp)
Method Detail

setTabs

public void setTabs(boolean tabbed)
set tabs in here


getInterp

public CLInterpreter getInterp()

registerCLICommands

protected void registerCLICommands(HWSystem hw,
                                   CLInterpreter interp)
Subclasses may use this method to override the default behavior of the broker's CLI commands


setWavesWireManager

public void setWavesWireManager(WavesWireManager waves)

setSchematicViewerPanel

public void setSchematicViewerPanel(SchematicViewerPanel svp)

setTreeBrowserPanel

public void setTreeBrowserPanel(TreeBrowserPanel tbp)

registerSchematicActionListener

public void registerSchematicActionListener(SchematicActionListener sl)
Deprecated.  


registerJHDLHostWidgetInterface

public void registerJHDLHostWidgetInterface(JHDLHostWidgetInterface hwi)
Method used to pass the Broker a copy of the JHDLHostWidgetInterface.

Parameters:
hwi - The JHDLHostWidgetInterface used for creating views like a SchematicCanvas or WavesViewer.

registerCustomViewer

public void registerCustomViewer(java.awt.Window win)

behavModel

public boolean behavModel(Cell cell,
                          boolean enable,
                          boolean force)
                   throws BrokerException
turn on or off behavioral model of a cell.

Parameters:
cell - the cell to change
enable - if true, behavioral modeling will be turned on, otherwise will be turned off
force - 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.
Returns:
false if the call should have changed the status of the behavioral model but didn't for some reason (e.g. can't disable a behavioral model if a non-behavioral model isn't available, such as for TestBenches); otherwise returns true
Throws:
BrokerException - if simulation has started already and the force parameter is not true.

cycleSimulator

public void cycleSimulator(int cycles)

stepSimulator

public void stepSimulator(int steps)

resetSimulator

public void resetSimulator()

newSchematicView

public void newSchematicView(Cell c)

print

public void print(Cell cell)

newMemoryViewerFrame

public void newMemoryViewerFrame(Cell c)

addWavesWatch

public boolean addWavesWatch(Wire w)

removeWavesWatch

public void removeWavesWatch(Wire w)

closeViews

public void closeViews()

loadModule

public void loadModule(java.lang.String className)


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.