A B C E F G I L N O P R S T W

A

addBlackNode(String, String) - Method in class ps4.BipartiteGraphTestDriver
 
addEdge(Object, Object, Object) - Method in class ps4.BipartiteGraph
Adds a labeled edge between two nodes.
addEdge(String, String, String, String) - Method in class ps4.BipartiteGraphTestDriver
 
addEdge(String, String, String) - Method in class ps4.Simulator
Add a new edge connecting a pipe and filter.
addEdge(String, String, String, String) - Method in class ps4.SimulatorTestDriver
 
addFilter(String, Filter) - Method in class ps4.Simulator
Add a new filter to the simulator.
addGCDFilter(String, String) - Method in class ps4.SimulatorTestDriver
 
addNode(Object, NodeColor) - Method in class ps4.BipartiteGraph
Adds a new node to the graph with the specified label and color.
addPipe(String, Pipe) - Method in class ps4.Simulator
Add a new pipe to the simulator.
addPipe(String, String) - Method in class ps4.SimulatorTestDriver
 
addPlusFilter(String, String) - Method in class ps4.SimulatorTestDriver
 
addWhiteNode(String, String) - Method in class ps4.BipartiteGraphTestDriver
 

B

BLACK - Static variable in class ps4.NodeColor
 
BipartiteGraph - class ps4.BipartiteGraph.
BipartiteGraph represents a directed bipartite graph with labeled edges.
BipartiteGraph() - Constructor for class ps4.BipartiteGraph
 
BipartiteGraphTest - class ps4.BipartiteGraphTest.
BipartiteGraphTest is a test suite for BipartiteGraph
BipartiteGraphTest() - Constructor for class ps4.BipartiteGraphTest
 
BipartiteGraphTestDriver - class ps4.BipartiteGraphTestDriver.
This class implements a testing driver for BipartiteGraph.
BipartiteGraphTestDriver() - Constructor for class ps4.BipartiteGraphTestDriver
 
blackNodeIterator() - Method in class ps4.BipartiteGraph
Provides an iterator over the set of labels of black nodes.

C

checkRep() - Method in class ps4.Filter
 
checkRep() - Method in class ps4.Pipe
 
containsNode(Object) - Method in class ps4.BipartiteGraph
Checks whether the graph contains a node by label.
contentsIterator() - Method in class ps4.Pipe
Obtain an iterator over the contents of the pipe
countNodes() - Method in class ps4.BipartiteGraph
Counts the number of nodes.
countNodes(NodeColor) - Method in class ps4.BipartiteGraph
Counts the nodes with a given color.
createGraph(String) - Method in class ps4.BipartiteGraphTestDriver
 
createSimulator(String) - Method in class ps4.SimulatorTestDriver
 

E

emit(BipartiteGraph, Object, Object) - Method in class ps4.Filter
Emit an object into a connected pipe.
emitByPipeLabel(BipartiteGraph, Object, Object) - Method in class ps4.Filter
Emit an object to a specific pipe, by pipe label.
equals(Object) - Method in class ps4.BipartiteGraph
Behavioral equality test
extract() - Method in class ps4.Pipe
Extract an object from the pipe.
extractFromPipe(String) - Method in class ps4.Simulator
Directly extract an object from a pipe's output.

F

Filter - class ps4.Filter.
The Filter abstract class represents a filter in the pipe-and-filter simulator.
Filter(Object, Simulator) - Constructor for class ps4.Filter
 

G

GCDFilter - class ps4.GCDFilter.
A GCDFilter performs one step Euclid's algorithm for computing the greatest common divisor.
GCDFilter(Object, Simulator) - Constructor for class ps4.GCDFilter
 
getChildByEdgeLabel(Object, Object) - Method in class ps4.BipartiteGraph
Finds the label of a child node, given the labels of the parent and the edge.
getChildByEdgeLabel(String, String, String) - Method in class ps4.BipartiteGraphTestDriver
 
getNodeColor(Object) - Method in class ps4.BipartiteGraph
Returns the color of a node, by label.
getParentByEdgeLabel(Object, Object) - Method in class ps4.BipartiteGraph
Finds the label of a parent node, given the labels of the child and the edge.
getParentByEdgeLabel(String, String, String) - Method in class ps4.BipartiteGraphTestDriver
 

I

IntPipe - class ps4.IntPipe.
An IntPipe stores a flow of integers, with a delay of one time slice and infinite capacity.
IntPipe(Object, Simulator) - Constructor for class ps4.IntPipe
 
inQueue - Variable in class ps4.Pipe
 
inject(Object) - Method in class ps4.Pipe
Inject an object into the pipe.
injectInput(String, int) - Method in class ps4.SimulatorTestDriver
 
injectIntoPipe(String, Object) - Method in class ps4.Simulator
Directly inject an input object into a pipe.
inputAvailable(BipartiteGraph, Object) - Method in class ps4.Filter
Check whether input is available from a connected pipe.
inputAvailableByPipeLabel(BipartiteGraph, Object) - Method in class ps4.Filter
Check whether input is available from a connected pipe.

L

label - Variable in class ps4.Filter
 
label - Variable in class ps4.Pipe
 
listBlackNodes(String) - Method in class ps4.BipartiteGraphTestDriver
 
listChildren(Object) - Method in class ps4.BipartiteGraph
Returns an iterator over the list of labels of children of a given node.
listChildren(String, String) - Method in class ps4.BipartiteGraphTestDriver
 
listContents(String) - Method in class ps4.SimulatorTestDriver
 
listParents(Object) - Method in class ps4.BipartiteGraph
Returns an iterator over the list of labels of parents of a given node.
listParents(String, String) - Method in class ps4.BipartiteGraphTestDriver
 
listWhiteNodes(String) - Method in class ps4.BipartiteGraphTestDriver
 

N

NodeColor - class ps4.NodeColor.
NodeColor represents the color of a node in a BipartiteGraph.

O

outQueue - Variable in class ps4.Pipe
 
outputAvailable() - Method in class ps4.Pipe
Check if any output is available from the pipe

P

Pipe - class ps4.Pipe.
The Pipe abstract class is implemented by each of the pipes in the pipe-and-filter simulation.
Pipe(Object, Simulator) - Constructor for class ps4.Pipe
 
PlusFilter - class ps4.PlusFilter.
A PlusFilter sums the inputs presented to it on each input pipe and places the output on the output pipe each timeslice.
PlusFilter(Object, Simulator) - Constructor for class ps4.PlusFilter
 
pipeContentsIterator(String) - Method in class ps4.Simulator
Obtain an iterator over the contents of a pipe
ps4 - package ps4
 

R

receive(BipartiteGraph, Object) - Method in class ps4.Filter
Receive an object from a connected pipe.
receiveByPipeLabel(BipartiteGraph, Object) - Method in class ps4.Filter
Receive an object from a connected pipe.
removeEdge(Object, Object) - Method in class ps4.BipartiteGraph
Remove an edge, given the source endpoint label and the edge label.
removeNode(Object) - Method in class ps4.BipartiteGraph
Remove a node and all associated edges.

S

Simulatable - interface ps4.Simulatable.
The Simulatable interface is implemented by each of the pipes and filters in a pipe-and-filter simulation.
Simulator - class ps4.Simulator.
The Simulator class represents a pipe-and-filter simulator.
Simulator() - Constructor for class ps4.Simulator
 
SimulatorTest - class ps4.SimulatorTest.
SimulatorTest is a test suite for the Simulator class
SimulatorTest() - Constructor for class ps4.SimulatorTest
 
SimulatorTestDriver - class ps4.SimulatorTestDriver.
This class implements a testing driver for Simulator.
SimulatorTestDriver() - Constructor for class ps4.SimulatorTestDriver
 
setUp() - Method in class ps4.BipartiteGraphTest
 
sim - Variable in class ps4.Filter
 
sim - Variable in class ps4.Pipe
 
simulate(BipartiteGraph, double) - Method in class ps4.GCDFilter
 
simulate(BipartiteGraph, double) - Method in class ps4.IntPipe
 
simulate(BipartiteGraph, double) - Method in class ps4.PlusFilter
 
simulate(BipartiteGraph, double) - Method in interface ps4.Simulatable
 
simulate() - Method in class ps4.Simulator
Simulate all pipes and filters in the simulator
simulate(String) - Method in class ps4.SimulatorTestDriver
 

T

testAddEdge() - Method in class ps4.BipartiteGraphTest
 
testAddNode() - Method in class ps4.BipartiteGraphTest
 
testBlackNodeIterator() - Method in class ps4.BipartiteGraphTest
 
testContainsNode() - Method in class ps4.BipartiteGraphTest
 
testCountNodesNoArgs() - Method in class ps4.BipartiteGraphTest
 
testCountNodesOneArg() - Method in class ps4.BipartiteGraphTest
 
testEquals() - Method in class ps4.BipartiteGraphTest
 
testExample1() - Method in class ps4.BipartiteGraphTest
 
testGCD() - Method in class ps4.SimulatorTest
 
testGetChildByEdgeLabel() - Method in class ps4.BipartiteGraphTest
 
testGetNodeColor() - Method in class ps4.BipartiteGraphTest
 
testGetParentByEdgeLabel() - Method in class ps4.BipartiteGraphTest
 
testListChildren() - Method in class ps4.BipartiteGraphTest
 
testListParents() - Method in class ps4.BipartiteGraphTest
 
testPipe() - Method in class ps4.SimulatorTest
 
testPlus() - Method in class ps4.SimulatorTest
 
testRemoveEdge() - Method in class ps4.BipartiteGraphTest
 
testRemoveNode() - Method in class ps4.BipartiteGraphTest
 
testWhiteNodeIterator() - Method in class ps4.BipartiteGraphTest
 
toString() - Method in class ps4.NodeColor
 

W

WHITE - Static variable in class ps4.NodeColor
 
whiteNodeIterator() - Method in class ps4.BipartiteGraph
Provides an iterator over the set of labels of white nodes.

A B C E F G I L N O P R S T W