A B C D E G I M N O P R S T

A

AbstractBlock - Class in ca.ryerson.kclowes.digsim
An AbstractBlock is a prototype implementation of a Block interface for single-output Blocks..
AbstractBlock(Node[], Node, int) - Constructor for class ca.ryerson.kclowes.digsim.AbstractBlock
Construct a AbstractBlock specifying its input and output Nodes and its delay.
addDependentBlock(Block) - Method in class ca.ryerson.kclowes.digsim.Node
Add a Block to the set of Blocks that use the value of this Node as an input.
addEvent(Event) - Method in class ca.ryerson.kclowes.digsim.Simulator
Add an Event to the Simulator.
addNodeChangeListener(NodeChangeListener) - Method in class ca.ryerson.kclowes.digsim.Node
Add a NodeChangedListener.

B

Block - Interface in ca.ryerson.kclowes.digsim
A Block is connected to at least one input Node and a one or more output Nodes.

C

CircuitParser - Class in ca.ryerson.kclowes.digsim.ui
The CircuitParser class (a Singleton) interprets a circuit description.
CircuitParserTest - Class in ca.ryerson.kclowes.digsim.ui
Basic tests of the CircuitParser singleton class.
CircuitParserTest(String) - Constructor for class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
 
CircuitPreprocessor - Class in ca.ryerson.kclowes.digsim.ui
Preprocess a circuit description interpreting/expanding macros.
CircuitPreprocessorTest - Class in ca.ryerson.kclowes.digsim.ui
Basic test on the CircuitPreprocessor class.
CircuitPreprocessorTest(String) - Constructor for class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
 
CmdLineNodeChangeListener - Class in ca.ryerson.kclowes.digsim.ui
The default handler of NodeChangeEvents for the command line interface.
CmdLineNodeChangeListener() - Constructor for class ca.ryerson.kclowes.digsim.ui.CmdLineNodeChangeListener
 
CmdLineUI - Class in ca.ryerson.kclowes.digsim.ui
 
ca.ryerson.kclowes.digsim - package ca.ryerson.kclowes.digsim
This package contains the core of a digital circuit simulation engine.
ca.ryerson.kclowes.digsim.ui - package ca.ryerson.kclowes.digsim.ui
This package contains the base of a user-interface to the digsim package.
containsMacro(String) - Static method in class ca.ryerson.kclowes.digsim.ui.MacroDefinition
Determine if a macro of the given name exists.

D

DEFAULT_DELAY - Static variable in class ca.ryerson.kclowes.digsim.ui.CircuitParser
Default delay when no delay specified.
deleteNextEvent() - Method in class ca.ryerson.kclowes.digsim.Simulator
Return the next Event and delete it from the Simulator.

E

Event - Class in ca.ryerson.kclowes.digsim
An Event is a simple immutable data structure containing the relevant information about an Event.
Event(Node, long, int) - Constructor for class ca.ryerson.kclowes.digsim.Event
Construct an Event describing a value change on a Node at a given time.
EventTest - Class in ca.ryerson.kclowes.digsim
Basic test on the Event class.
EventTest(String) - Constructor for class ca.ryerson.kclowes.digsim.EventTest
 
evaluate() - Method in class ca.ryerson.kclowes.digsim.AbstractBlock
 
evaluate() - Method in interface ca.ryerson.kclowes.digsim.Block
Make the Block evaluate itself.
evaluate() - Method in class ca.ryerson.kclowes.digsim.OutDamnSpotOut
 
expand(Reader, Writer) - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessor
Expand a circuit description.

G

getDependentBlocks() - Method in class ca.ryerson.kclowes.digsim.Node
Returns the blocks using this Node as an input.
getInstance() - Static method in class ca.ryerson.kclowes.digsim.Simulator
 
getInstance() - Static method in class ca.ryerson.kclowes.digsim.ui.CircuitParser
Returns the Singleton CircuitParser instance.
getInstance() - Static method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessor
 
getInstance() - Static method in class ca.ryerson.kclowes.digsim.ui.CmdLineNodeChangeListener
Get the singleton instance.
getInstance() - Static method in class ca.ryerson.kclowes.digsim.ui.CmdLineUI
 
getInstance() - Static method in class ca.ryerson.kclowes.digsim.ui.Interpreter
 
getMacroNamed(String) - Static method in class ca.ryerson.kclowes.digsim.ui.MacroDefinition
Returns the MacroDefinition with the given name.
getName() - Method in class ca.ryerson.kclowes.digsim.Node
Get the name of a Node.
getNode() - Method in class ca.ryerson.kclowes.digsim.Event
Get the Node set by the Event.
getNodeForName(String, boolean) - Static method in class ca.ryerson.kclowes.digsim.Node
Get the Node with a given qualified name.
getNodeForName(String) - Static method in class ca.ryerson.kclowes.digsim.Node
Get the Node with a given name.
getNodeNames() - Static method in class ca.ryerson.kclowes.digsim.Node
Get all of the NodeNames.
getNumHandledEvents() - Method in class ca.ryerson.kclowes.digsim.Simulator
Get number of Events that have been handled.
getNumPendingEvents() - Method in class ca.ryerson.kclowes.digsim.Simulator
Get number of Events that are pending (not yet handled).
getSimulationTime() - Method in class ca.ryerson.kclowes.digsim.Simulator
Get the current time.
getTime() - Method in class ca.ryerson.kclowes.digsim.Event
Get the time of the Event.
getUndelayedOutput() - Method in class ca.ryerson.kclowes.digsim.AbstractBlock
This abstract method must be instantiated in the subclass.
getUndelayedOutput() - Method in class ca.ryerson.kclowes.digsim.Nand
Calculates nand gate output from current inputs with NO delay.
getUndelayedOutput() - Method in class ca.ryerson.kclowes.digsim.OutDamnSpotOut
 
getValue() - Method in class ca.ryerson.kclowes.digsim.Event
Get the new value set by the Event.
getValue() - Method in class ca.ryerson.kclowes.digsim.Node
Get the current value of a Node.
go() - Method in class ca.ryerson.kclowes.digsim.ui.CmdLineUI
 

I

Interpreter - Class in ca.ryerson.kclowes.digsim.ui
Singleton class to create a simulation circuit from user commands.
InterpreterTest - Class in ca.ryerson.kclowes.digsim.ui
Basic test on the Interpreter class.
InterpreterTest(String) - Constructor for class ca.ryerson.kclowes.digsim.ui.InterpreterTest
 
inputs - Variable in class ca.ryerson.kclowes.digsim.AbstractBlock
 

M

MacroDefinition - Class in ca.ryerson.kclowes.digsim.ui
Manages and interprets macro definitions.
MacroDefinition(String, String[], String[]) - Constructor for class ca.ryerson.kclowes.digsim.ui.MacroDefinition
Create a MacroDefinition.
MacroDefinitionTest - Class in ca.ryerson.kclowes.digsim.ui
Basic test on the MacroDefinition class.
MacroDefinitionTest(String) - Constructor for class ca.ryerson.kclowes.digsim.ui.MacroDefinitionTest
 
main(String[]) - Static method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessor
The main method allows the CircuitPreprocessor to be used as an application.
main(String[]) - Static method in class ca.ryerson.kclowes.digsim.ui.SimulatorMain
The main() method parses the command line args and invokes the appropriate user interface.

N

Nand - Class in ca.ryerson.kclowes.digsim
Nand is an n-input nand gate.
Nand(Node[], Node, int) - Constructor for class ca.ryerson.kclowes.digsim.Nand
Construct a Nand gate specifying its input and output Nodes and its delay.
NandTest - Class in ca.ryerson.kclowes.digsim
 
NandTest(String) - Constructor for class ca.ryerson.kclowes.digsim.NandTest
 
Node - Class in ca.ryerson.kclowes.digsim
The Node object keeps track of its value and informs any dependent Blocks of any changes.
Node(int, String) - Constructor for class ca.ryerson.kclowes.digsim.Node
Construct a Node specifying its initial value and name.
Node(int) - Constructor for class ca.ryerson.kclowes.digsim.Node
Construct a Node specifying its initial value.
NodeChangeEvent - Class in ca.ryerson.kclowes.digsim
The NodeChangeEvent class description.
NodeChangeEvent(Object) - Constructor for class ca.ryerson.kclowes.digsim.NodeChangeEvent
 
NodeChangeListener - Interface in ca.ryerson.kclowes.digsim
A NodeChangeListener is used to listen for chnages in a Node value.
NodeTest - Class in ca.ryerson.kclowes.digsim
 
NodeTest(String) - Constructor for class ca.ryerson.kclowes.digsim.NodeTest
 
nodeChanged(NodeChangeEvent) - Method in interface ca.ryerson.kclowes.digsim.NodeChangeListener
Invoked when the target Node of the listener has changed.
nodeChanged(NodeChangeEvent) - Method in class ca.ryerson.kclowes.digsim.ui.CmdLineNodeChangeListener
Prints the details to stdout.

O

OutDamnSpotOut - Class in ca.ryerson.kclowes.digsim
Eliminates glitches.
OutDamnSpotOut(Node, Node) - Constructor for class ca.ryerson.kclowes.digsim.OutDamnSpotOut
The constructor ..
OutDamnSpotOutTest - Class in ca.ryerson.kclowes.digsim
 
OutDamnSpotOutTest(String) - Constructor for class ca.ryerson.kclowes.digsim.OutDamnSpotOutTest
 
output - Variable in class ca.ryerson.kclowes.digsim.AbstractBlock
 

P

parse(String[]) - Method in class ca.ryerson.kclowes.digsim.ui.MacroDefinition
Expand macro use.
parseFile(String) - Method in class ca.ryerson.kclowes.digsim.ui.Interpreter
Parses the contents of the named file.
parseLine(String) - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParser
Parses a single line of a circuit description.
parseReader(Reader) - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParser
Parses circuit description from a Reader.
parseReader(Reader) - Method in class ca.ryerson.kclowes.digsim.ui.Interpreter
Parses the contents of the Reader.
parseString(String) - Method in class ca.ryerson.kclowes.digsim.ui.Interpreter
Parses the contents of the String.

R

reset() - Method in class ca.ryerson.kclowes.digsim.Simulator
Reset simulator.

S

SimulateSimpleCircuitTest - Class in ca.ryerson.kclowes.digsim
Various tests of simulator.
SimulateSimpleCircuitTest(String) - Constructor for class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
 
Simulator - Class in ca.ryerson.kclowes.digsim
The Simulator performs the actual simulation of a digital system composed of Blocks and Nodes.
SimulatorMain - Class in ca.ryerson.kclowes.digsim.ui
The starting point for a user-interface to the simulation engine.
SimulatorTest - Class in ca.ryerson.kclowes.digsim
Basic tests of the Simulator class.
SimulatorTest(String) - Constructor for class ca.ryerson.kclowes.digsim.SimulatorTest
 
setNodeChangeListener(NodeChangeListener) - Method in class ca.ryerson.kclowes.digsim.Simulator
Sets the NodeChangeListener for the Simulator.
setNodeChangeListener(NodeChangeListener) - Method in class ca.ryerson.kclowes.digsim.ui.Interpreter
Sets the NodeChangeListener for the Interpreter.
setValue(int) - Method in class ca.ryerson.kclowes.digsim.Node
Set the value of a Node.
setup() - Method in class ca.ryerson.kclowes.digsim.NandTest
 
setup() - Method in class ca.ryerson.kclowes.digsim.OutDamnSpotOutTest
 
step() - Method in class ca.ryerson.kclowes.digsim.Simulator
Process the next pending Event.
suite() - Static method in class ca.ryerson.kclowes.digsim.EventTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.NandTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.NodeTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.OutDamnSpotOutTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.SimulatorTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
 
suite() - Static method in class ca.ryerson.kclowes.digsim.ui.MacroDefinitionTest
 

T

testBadFileName() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Ensure that parsing a NON-EXISTANT file creates an exception.
testBasicDefBlock() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
Ensure that a macro block can be defined and retrieved.
testBasicDefBlockAndInterpret() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
Ensure that a macro block can be defined and INTERPRETED.
testBasicDefBlockAndInterpret2() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
Ensure that a macro block can be defined and INTERPRETED with other blocks.
testBasicDefBlockAndInterpret3() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
Ensure that a macro block can be defined in terms of other blocks.
testChangeListeners() - Method in class ca.ryerson.kclowes.digsim.NodeTest
Verify that Nodes can have NodeChangeListeners.
testComboLogicInverter() - Method in class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
Ensures that a simple inverter does indeed invert the input.
testComment() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
 
testDelayOption() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
Ensure delay option works.
testDuplicateName() - Method in class ca.ryerson.kclowes.digsim.ui.MacroDefinitionTest
Ensure that duplicate names generate an exception.
testGetInstance() - Method in class ca.ryerson.kclowes.digsim.SimulatorTest
Ensure that only one instance is created.
testGetInstance() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
Ensure that only one instance is created.
testGetNameANONYMOUS() - Method in class ca.ryerson.kclowes.digsim.NodeTest
Test that Nodes can be created without a name.
testGetNameSpecified() - Method in class ca.ryerson.kclowes.digsim.NodeTest
 
testGetNodeNames() - Method in class ca.ryerson.kclowes.digsim.NodeTest
 
testGetPending() - Method in class ca.ryerson.kclowes.digsim.SimulatorTest
Ensure that Events added increment the value returned by getNumPendingEvents.
testGetters() - Method in class ca.ryerson.kclowes.digsim.EventTest
 
testINVALIDtimeVsCurrentTimeConstructor() - Method in class ca.ryerson.kclowes.digsim.EventTest
 
testIllegalOption() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
 
testMacroUse() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
 
testMyAndMacro() - Method in class ca.ryerson.kclowes.digsim.ui.MacroDefinitionTest
Simple test of an "and" gate macro.
testMyInvMacro() - Method in class ca.ryerson.kclowes.digsim.ui.MacroDefinitionTest
Simple test of an "inv" gate macro.
testNand2GetUndelayedOutput() - Method in class ca.ryerson.kclowes.digsim.NandTest
 
testNandAsInverterGetUndelayedOutput() - Method in class ca.ryerson.kclowes.digsim.NandTest
 
testNandRemoveGlitch() - Method in class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
Test pure 2-input Nand with expected glitch.
testNandWithGlitch() - Method in class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
Test pure 2-input Nand with expected glitch.
testParseReader() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
Test parseReader.
testQualifiedName() - Method in class ca.ryerson.kclowes.digsim.NodeTest
 
testSetNoTime() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Test set without time spec and no "to" word.
testSetNoTimeWithToWord() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Test set without time spec using "to" word.
testSetWithInVsAtTime() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
 
testSetWithTime() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Ensure set with time spec adds an Event.
testSimpleGlitch1() - Method in class ca.ryerson.kclowes.digsim.OutDamnSpotOutTest
 
testSimpleINVALIDConstructors() - Method in class ca.ryerson.kclowes.digsim.EventTest
 
testSimpleINVALIDConstructors() - Method in class ca.ryerson.kclowes.digsim.NandTest
 
testSimpleINVALIDConstructors() - Method in class ca.ryerson.kclowes.digsim.NodeTest
 
testSimpleINVALIDConstructors() - Method in class ca.ryerson.kclowes.digsim.OutDamnSpotOutTest
 
testSimpleINVALIDsetValue() - Method in class ca.ryerson.kclowes.digsim.NodeTest
 
testSimpleLine() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
Parse simple line: inverter only.
testSimpleSpot() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
Parse simple line with OutDamnSpotOut only.
testSimpleTwoLines() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitParserTest
Parse 2 lines: inverter only connected to inverter.
testSimpleValidConstructor() - Method in class ca.ryerson.kclowes.digsim.EventTest
Ensure that valid creations of an Event work.
testSimpleValidConstructor() - Method in class ca.ryerson.kclowes.digsim.NandTest
 
testSimpleValidConstructor() - Method in class ca.ryerson.kclowes.digsim.NodeTest
 
testSimpleValidConstructor() - Method in class ca.ryerson.kclowes.digsim.OutDamnSpotOutTest
 
testSimulatorClkInv() - Method in class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
Test the simulator for a single inverter with output connected to input.
testSimulatorThreeInvs() - Method in class ca.ryerson.kclowes.digsim.SimulateSimpleCircuitTest
Test the simulator for 3 inverters.
testSingleton() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
Ensure that CircuitPreprocessor is a singleton.
testSingleton() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Ensure that Interpreter is a singleton.
testString2LineCircuit() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Test a simple 2-line circuit.
testToString() - Method in class ca.ryerson.kclowes.digsim.EventTest
 
testTrace() - Method in class ca.ryerson.kclowes.digsim.ui.InterpreterTest
Test self-connected inverter and "trace".
testTransparentLatchMacro() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
Test a Transparent latch.
testTransparentLatchMacroWithComments() - Method in class ca.ryerson.kclowes.digsim.ui.CircuitPreprocessorTest
 
toString() - Method in class ca.ryerson.kclowes.digsim.Event
Creates a string representation of an Event.
toString() - Method in class ca.ryerson.kclowes.digsim.Node
Creates a string representation of a Node consisting of its name.
toString() - Method in class ca.ryerson.kclowes.digsim.ui.MacroDefinition
Gives a string representation of the macro.

A B C D E G I M N O P R S T