Skip navigation links
A C E F G H I L M O P R S T V W 

A

andy - Variable in class P5Tests
 
assertOutsMatch(List<Wire>, List<Signal>) - Static method in class P5Tests
 

C

Circuit - Class in <Unnamed>
Circuit class implements Logic since each circuti will follow the Logics by combining together the logic of the gates.
Circuit(String, List<Logic>, List<Contact>, List<Contact>, List<Wire>, List<String>) - Constructor for class Circuit
Circuit constructor, construct the design of contact class
Circuit(String) - Constructor for class Circuit
This constructor will construct a Circuit by given the name of the circuit To do this I will follow this steps *1.initialize all fields, first thing (including empty lists).
circuit_1() - Method in class P5Tests
 
circuit_2() - Method in class P5Tests
 
circuit_3() - Method in class P5Tests
 
circuit_4() - Method in class P5Tests
 
circuit_5() - Method in class P5Tests
 
circuit_6() - Method in class P5Tests
 
circuit_andy() - Method in class P5Tests
 
circuit_feed1() - Method in class P5Tests
 
circuit_feed2() - Method in class P5Tests
 
circuit_feed3() - Method in class P5Tests
 
circuit_findWire1() - Method in class P5Tests
 
circuit_findWire2() - Method in class P5Tests
 
circuit_findWire3() - Method in class P5Tests
 
circuit_findWire4() - Method in class P5Tests
 
circuit_getCircuitScanner() - Method in class P5Tests
 
circuit_hookup1() - Method in class P5Tests
 
circuit_hookup2() - Method in class P5Tests
 
circuit_indent1() - Method in class P5Tests
 
circuit_indent2() - Method in class P5Tests
 
circuit_parseComponentLine_1() - Method in class P5Tests
 
circuit_parseComponentLine_2() - Method in class P5Tests
 
circuit_parseComponentLine_3() - Method in class P5Tests
 
circuit_parseContactsLine1() - Method in class P5Tests
 
circuit_parseContactsLine2() - Method in class P5Tests
 
circuit_parseImportLine1() - Method in class P5Tests
 
circuit_parseImportLine2() - Method in class P5Tests
 
circuit_propagate1() - Method in class P5Tests
 
circuit_propagate2() - Method in class P5Tests
 
circuit_propagate3() - Method in class P5Tests
 
circuit_propagate4() - Method in class P5Tests
 
circuit_propagate5() - Method in class P5Tests
 
circuit_propagate6() - Method in class P5Tests
 
circuit_propagate7() - Method in class P5Tests
 
circuit_propagate8() - Method in class P5Tests
 
circuit_propagate9() - Method in class P5Tests
 
circuit_read1() - Method in class P5Tests
 
circuit_read2() - Method in class P5Tests
 
circuit_read3() - Method in class P5Tests
 
circuit_read4() - Method in class P5Tests
 
circuit_read5() - Method in class P5Tests
 
circuit_read6() - Method in class P5Tests
 
circuit_read7() - Method in class P5Tests
 
circuit_read8() - Method in class P5Tests
 
circuit_toString() - Method in class P5Tests
 
componentsArg - Variable in class P5Tests
 
Contact - Class in <Unnamed>
Contact class construct contact objects that have two wire one in and one out and inbound boolean value.
Contact(Wire, Wire, boolean) - Constructor for class Contact
Contact constructor, construct the disign of contact class
contact_1() - Method in class P5Tests
 
contact_2() - Method in class P5Tests
 
contact_equals() - Method in class P5Tests
 
contact_toString1() - Method in class P5Tests
 
contact_toString2() - Method in class P5Tests
 
contact_toString3() - Method in class P5Tests
 
contact_toString4() - Method in class P5Tests
 
contact_toString5() - Method in class P5Tests
 

E

ELParams1() - Method in class P5Tests
 
ELParams2() - Method in class P5Tests
 
ELParams3() - Method in class P5Tests
 
equals(Object) - Method in class Contact
public boolean equals(Object o).
equals(Object) - Method in class Gate
public boolean equals(Object other).
equals(Object) - Method in class GateAnd
public boolean equals(Object other).
equals(Object) - Method in class GateNand
public boolean equals(Object other).
equals(Object) - Method in class GateNor
public boolean equals(Object other).
equals(Object) - Method in class GateNot
public boolean equals(Object other).
equals(Object) - Method in class GateOr
public boolean equals(Object other).
equals(Object) - Method in class GateXor
public boolean equals(Object other).
equals(Object) - Method in class Wire
public boolean equals(Object other).
ExceptionLogicMalformedSignal - Exception in <Unnamed>
ExceptionLogicMalformedSignal creates an objcet that is an exception
ExceptionLogicMalformedSignal(char, String) - Constructor for exception ExceptionLogicMalformedSignal
the constuctor of exception has char and msg
ExceptionLogicParameters - Exception in <Unnamed>
ExceptionLogicParameters creates an objcet that is an exception
ExceptionLogicParameters(boolean, int, int) - Constructor for exception ExceptionLogicParameters
the constuctor of exception has boolean inputsRelated, the int expected and the int found

F

feed(List<Signal>) - Method in class Circuit
feed method feeds these signal values to the inputs contacts.
feed(String) - Method in class Circuit
feed method feeds these String into inputs list
feed(List<Signal>) - Method in class Gate
feed method feeds these list of singnals into inputs list
feed(String) - Method in class Gate
feed method feeds these String into inputs list
feed(List<Signal>) - Method in interface Logic
Assigns the given signals to the wires of this thing
feed(String) - Method in interface Logic
Converts the String signal into Signal value for our List of Signal
file_1() - Method in class P5Tests
 
file_1_xs() - Method in class P5Tests
 
file_2() - Method in class P5Tests
 
file_2_Xs() - Method in class P5Tests
 
file_and_00() - Method in class P5Tests
 
file_and_01() - Method in class P5Tests
 
file_and_10() - Method in class P5Tests
 
file_and_11() - Method in class P5Tests
 
file_and_2_Xs() - Method in class P5Tests
 
file_and_3_Xs() - Method in class P5Tests
 
file_and_3s() - Method in class P5Tests
 
file_and_single() - Method in class P5Tests
 
file_fulladder() - Method in class P5Tests
 
file_fulladder_basic() - Method in class P5Tests
 
file_fulladder_basic_Xs() - Method in class P5Tests
 
file_fulladder_Xs() - Method in class P5Tests
 
file_halfadder() - Method in class P5Tests
 
file_halfadder_Xs() - Method in class P5Tests
 
file_mux_4_to_1() - Method in class P5Tests
 
file_mux_4_to_1_Xs() - Method in class P5Tests
 
file_nand() - Method in class P5Tests
 
file_nand_derived() - Method in class P5Tests
 
file_nand_derived_Xs() - Method in class P5Tests
 
file_nand_Xs() - Method in class P5Tests
 
file_nor() - Method in class P5Tests
 
file_nor_Xs() - Method in class P5Tests
 
file_not_0() - Method in class P5Tests
 
file_not_1() - Method in class P5Tests
 
file_not_X() - Method in class P5Tests
 
file_or() - Method in class P5Tests
 
file_or_Xs() - Method in class P5Tests
 
file_ripple4() - Method in class P5Tests
 
file_xor() - Method in class P5Tests
 
file_xor_Xs() - Method in class P5Tests
 
findWire(String) - Method in class Circuit
findWire finds if this wire exist on innerWire and return the wire if not return null
fromString(char) - Static method in enum Signal
fromString method take a char as parameter and converts to Signal.'1'- HI '0'-LO 'X'-X 'x'-X
fromString(String) - Static method in enum Signal
fromString method creates a list of Signal values from a given string.

G

Gate - Class in <Unnamed>
abstract class Gate implemetns the Logic since each gate has their on Logic.
Gate(String, List<Wire>, Wire) - Constructor for class Gate
Gate constructor, construct the disign of our gates child throws ExceptionLogicParameters if are input list is empty
gate_equals() - Method in class P5Tests
 
gate_feed1() - Method in class P5Tests
 
gate_feed2() - Method in class P5Tests
 
gate_feed3() - Method in class P5Tests
 
gate_feed4() - Method in class P5Tests
 
gate_feed5() - Method in class P5Tests
 
gate_getInputs() - Method in class P5Tests
 
gate_getOutput() - Method in class P5Tests
 
gate_name1() - Method in class P5Tests
 
gate_name2() - Method in class P5Tests
 
gate_read1() - Method in class P5Tests
 
gate_read2() - Method in class P5Tests
 
gate_setInputs() - Method in class P5Tests
 
gate_setOutput() - Method in class P5Tests
 
gate_toString1() - Method in class P5Tests
 
gate_toString2() - Method in class P5Tests
 
GateAnd - Class in <Unnamed>
GateAnd its a gate that has a name AND and all the inputs signals are HI.
GateAnd(List<Wire>, Wire) - Constructor for class GateAnd
GateAnd constructor, construct the disign of our gate and
gateand1() - Method in class P5Tests
 
gateand_00() - Method in class P5Tests
 
gateand_01() - Method in class P5Tests
 
gateand_10() - Method in class P5Tests
 
gateand_11() - Method in class P5Tests
 
gateand_1101() - Method in class P5Tests
 
gateand_111() - Method in class P5Tests
 
gateand_1X() - Method in class P5Tests
 
gateand_propagate_results() - Method in class P5Tests
 
gateand_X0() - Method in class P5Tests
 
gateand_XX() - Method in class P5Tests
 
GateNand - Class in <Unnamed>
GateNand its a gate that has a name NAND and all the inputs signals are LO.
GateNand(List<Wire>, Wire) - Constructor for class GateNand
GateNand constructor, construct the disign of our gate and
gatenand_00() - Method in class P5Tests
 
gatenand_0010() - Method in class P5Tests
 
gatenand_01() - Method in class P5Tests
 
gatenand_011() - Method in class P5Tests
 
gatenand_1() - Method in class P5Tests
 
gatenand_10() - Method in class P5Tests
 
gatenand_11() - Method in class P5Tests
 
gatenand_1X() - Method in class P5Tests
 
gatenand_propagate_results() - Method in class P5Tests
 
gatenand_X0() - Method in class P5Tests
 
gatenand_XX() - Method in class P5Tests
 
GateNor - Class in <Unnamed>
GateNor its a gate that has a name NOR and all the inputs signals are HI.
GateNor(List<Wire>, Wire) - Constructor for class GateNor
GateNor constructor, construct the disign of our gate and
gatenor_00() - Method in class P5Tests
 
gatenor_0010() - Method in class P5Tests
 
gatenor_01() - Method in class P5Tests
 
gatenor_011() - Method in class P5Tests
 
gatenor_1() - Method in class P5Tests
 
gatenor_10() - Method in class P5Tests
 
gatenor_11() - Method in class P5Tests
 
gatenor_1X() - Method in class P5Tests
 
gatenor_propagate_results() - Method in class P5Tests
 
gatenor_X0() - Method in class P5Tests
 
gatenor_XX() - Method in class P5Tests
 
GateNot - Class in <Unnamed>
 
GateNot(Wire, Wire) - Constructor for class GateNot
 
gatenot_0() - Method in class P5Tests
 
gatenot_1() - Method in class P5Tests
 
gatenot_propagate_results() - Method in class P5Tests
 
gatenot_X() - Method in class P5Tests
 
GateOr - Class in <Unnamed>
GateOr its a gate that has a name OR and one of the inputs signals is HI.
GateOr(List<Wire>, Wire) - Constructor for class GateOr
GateOr constructor, construct the disign of our gate and
gateor1() - Method in class P5Tests
 
gateor_00() - Method in class P5Tests
 
gateor_0010() - Method in class P5Tests
 
gateor_01() - Method in class P5Tests
 
gateor_10() - Method in class P5Tests
 
gateor_11() - Method in class P5Tests
 
gateor_111() - Method in class P5Tests
 
gateor_1X() - Method in class P5Tests
 
gateor_propagate_results() - Method in class P5Tests
 
gateor_X0() - Method in class P5Tests
 
gateor_XX() - Method in class P5Tests
 
GateSim - Class in <Unnamed>
GateSim is simulater that given 2 arguments will give us the output value of this circuit
GateSim() - Constructor for class GateSim
 
GateThing(List<Wire>, Wire) - Constructor for class P5Tests.GateThing
 
GateXor - Class in <Unnamed>
GateXor its a gate that has a name Xor and only one of the inputs signals is HI.
GateXor(List<Wire>, Wire) - Constructor for class GateXor
GateXor constructor, construct the disign of our gate and
gatexor1() - Method in class P5Tests
 
gatexor_00() - Method in class P5Tests
 
gatexor_0010() - Method in class P5Tests
 
gatexor_01() - Method in class P5Tests
 
gatexor_011() - Method in class P5Tests
 
gatexor_1() - Method in class P5Tests
 
gatexor_10() - Method in class P5Tests
 
gatexor_11() - Method in class P5Tests
 
gatexor_1X() - Method in class P5Tests
 
gatexor_propagate_results() - Method in class P5Tests
 
gatexor_X0() - Method in class P5Tests
 
gatexor_XX() - Method in class P5Tests
 
getAndy() - Static method in class P5Tests
 
getBad() - Method in exception ExceptionLogicMalformedSignal
Returns the bad char
getCircuitScanner(String) - Method in class Circuit
getCircuitScanner will create a scanner that will read file of format .txr on samples folder.
getComponents() - Method in class Circuit
getComponents
getExpected() - Method in exception ExceptionLogicParameters
Returns the expected value of this exception
getFound() - Method in exception ExceptionLogicParameters
Returns the found value of this exception
getImportables() - Method in class Circuit
getImportables
getIn() - Method in class Contact
getIn
getInbound() - Method in class Contact
getInbound
getInnerWires() - Method in class Circuit
getInnerWires
getInputs() - Method in class Circuit
getInputs
getInputs() - Method in class Gate
getInputs
getInputsRelated() - Method in exception ExceptionLogicParameters
Returns the inputsRelated value of this exception
getMsg() - Method in exception ExceptionLogicMalformedSignal
Returns the string of this message
getName() - Method in class Circuit
getName
getName() - Method in class Gate
getName
getName() - Method in class Wire
getName
getOut() - Method in class Contact
getOut
getOutput() - Method in class Gate
getOutput
getOutputs() - Method in class Circuit
getOutputs
getSignal() - Method in class Wire
getSignal

H

hookUp(List<Wire>, List<Wire>) - Method in class Circuit
hookUp will connect togother the wire from outside to the wire inside the circuit inWires will be set on inputs contact in Wire and outWire will be set on the outputs contact out Wire.

I

importablesArg - Variable in class P5Tests
 
indent(String) - Static method in class Circuit
indent method add indent to the string of lines
innerWiresArg - Variable in class P5Tests
 
inputContactsArg - Variable in class P5Tests
 
inspect(List<Signal>) - Method in class Circuit
A combination of feeding, propagating, and reading.
inspect(String) - Method in class Circuit
We will return the String of the inputs that we did in previous method.
inspect(List<Signal>) - Method in class Gate
A combination of feeding, propagating, and reading.
inspect(String) - Method in class Gate
We will return the String of the inputs that we did in previous method.
inspect(List<Signal>) - Method in interface Logic
A combination of feeding, propagating, and reading.
inspect(String) - Method in interface Logic
We will return the String of the inputs that we did in previous method.
inspect(List<Signal>) - Method in class P5Tests.GateThing
 
inspect(String) - Method in class P5Tests.GateThing
 
invert() - Method in enum Signal
invert() method

L

Logic - Interface in <Unnamed>
interface Logic represents something that can accept inputs, performs some transformation, and yields some outputs.

M

main(String[]) - Static method in class GateSim
 
main(String[]) - Static method in class P5Tests
 
malformedSignal1() - Method in class P5Tests
 
malformedSignal2() - Method in class P5Tests
 
malformedSignal3() - Method in class P5Tests
 

O

outputContactsArg - Variable in class P5Tests
 

P

P5Tests - Class in <Unnamed>
 
P5Tests() - Constructor for class P5Tests
 
P5Tests.GateThing - Class in <Unnamed>
 
parseComponentLine(String) - Method in class Circuit
parseComponentLine reads the line and check if it has sub-circuit in it if not has a gate.
parseContactsLine(String) - Method in class Circuit
parseContactsLine reads each line of string and creates new wires and store them at innerWires list and for each one, create a Contact and appropriately add it to either inputs or outputs.
parseImportLine(String) - Method in class Circuit
parseImportLine reads a line of string that have Import word on it and stores each of other tokens in list importables but not the import word.
prepareCircuits() - Method in class P5Tests
 
propagate() - Method in class Circuit
propagate fully update all outputs of all components in this circuit so that all signal values are stable.
propagate() - Method in class Gate
This abstract method should be implement by each child class of gate
propagate() - Method in class GateAnd
propagate() methods return a boolean false if all the signal are HI and set the value for output that depends on what the list of Wire has on inputs.
propagate() - Method in class GateNand
propagate() methods return a boolean false if all the signal are LO and set the value for output that depends on what the list of Wire has on inputs.
propagate() - Method in class GateNor
propagate() methods return a boolean false if all the signal are LO and set the value for output that depends on what the list of Wire has on inputs.
propagate() - Method in class GateNot
propagate() method will invert the single input value of signal.
propagate() - Method in class GateOr
propagate() methods return a boolean false if any the signal is HI and set the value for output that depends on what the list of Wire has on inputs.
propagate() - Method in class GateXor
propagate() methods return a boolean false if any the signal is different than exactly one HI and set the value for output that depends on what the list of Wire has on inputs.
propagate() - Method in interface Logic
propagate() stabilize the outputs, return true if any action was made in order to stabilze the circuit/gate
propagate() - Method in class P5Tests.GateThing
 

R

read() - Method in class Circuit
reads the signal values from the outputs contact, and create a list of singls of outputs
read() - Method in class Gate
read the single signal value from the output wire, and create a list of singls of outputs
read() - Method in interface Logic
Read the signal values on the output wires, and return them as a List of Signal value.

S

setBad(char) - Method in exception ExceptionLogicMalformedSignal
set the char bad to this bad value
setComponents(List<Logic>) - Method in class Circuit
setComponents sets the components to parameter value
setExpected(int) - Method in exception ExceptionLogicParameters
set the expected to this expected value
setFound(int) - Method in exception ExceptionLogicParameters
set the found to this expected found
setImportables(List<String>) - Method in class Circuit
setImportables sets the importables to parameter value
setIn(Wire) - Method in class Contact
setIn sets the wire in of this contact to parameter value in
setInbound(boolean) - Method in class Contact
setInbound sets the inbound of this contact in to parameter value inbound
setInnerWires(List<Wire>) - Method in class Circuit
setInnerWires sets the innerWires to parameter value
setInputs(List<Contact>) - Method in class Circuit
setInputs sets the inputs to parameter value
setInputs(List<Wire>) - Method in class Gate
setInputs sets the inputs to parameter value list
setInputsRelated(boolean) - Method in exception ExceptionLogicParameters
set the inputsRelated to this inputsRelated value
setMsg(String) - Method in exception ExceptionLogicMalformedSignal
set the the msg to this msg value
setName(String) - Method in class Circuit
setName sets the name to parameter value
setName(String) - Method in class Gate
setName sets the name to parameter value
setName(String) - Method in class Wire
setName sets the name to parameter value
setOut(Wire) - Method in class Contact
setOut sets the wire out of this contact to parameter value out
setOutput(Wire) - Method in class Gate
setOutput sets the output to parameter value
setOutputs(List<Contact>) - Method in class Circuit
setOutputs sets the outputs to parameter value
setSignal(Signal) - Method in class Wire
setSignal set the signal with the new parameter
setup() - Method in class P5Tests
 
Signal - Enum in <Unnamed>
The enum Signal represent the values that a wire may have like HI, LO or X.
signal1() - Method in class P5Tests
 
signal10() - Method in class P5Tests
 
signal11() - Method in class P5Tests
 
signal12() - Method in class P5Tests
 
signal13() - Method in class P5Tests
 
signal14() - Method in class P5Tests
 
signal15() - Method in class P5Tests
 
signal16() - Method in class P5Tests
 
signal2() - Method in class P5Tests
 
signal3() - Method in class P5Tests
 
signal4() - Method in class P5Tests
 
signal5() - Method in class P5Tests
 
signal6() - Method in class P5Tests
 
signal7() - Method in class P5Tests
 
signal8() - Method in class P5Tests
 
signal9() - Method in class P5Tests
 
sigs0 - Variable in class P5Tests
 
sigs00 - Variable in class P5Tests
 
sigs01 - Variable in class P5Tests
 
sigs0X - Variable in class P5Tests
 
sigs1 - Variable in class P5Tests
 
sigs10 - Variable in class P5Tests
 
sigs11 - Variable in class P5Tests
 
sigs1X - Variable in class P5Tests
 
sigsX - Variable in class P5Tests
 
sigsX0 - Variable in class P5Tests
 
sigsX1 - Variable in class P5Tests
 
sigsXX - Variable in class P5Tests
 
simpleCircuit - Variable in class P5Tests
 
simpleCircuit2 - Variable in class P5Tests
 

T

test_circuit(Circuit, String, String) - Static method in class P5Tests
 
test_circuit(String, String, String) - Static method in class P5Tests
 
toString() - Method in class Circuit
toString return the repersantion of the Circuit in strings.
toString() - Method in class Contact
Overrides toString() to represent a contact wire there are two different way to construct this string 1.
toString() - Method in exception ExceptionLogicMalformedSignal
toString is the message of this exception
toString() - Method in exception ExceptionLogicParameters
toString is the message of this exception
toString() - Method in class Gate
toString the representation of a gate object
toString() - Method in enum Signal
toString method return the String of signal
toString(List<Signal>) - Static method in enum Signal
toString is a method that overload the toSring if a parameter was given that is List of Signal.
toString() - Method in class Wire
toString overrides the toStirng by concated togother the name + : and the signal for this wire

V

valueOf(String) - Static method in enum Signal
Returns the enum constant of this type with the specified name.
values() - Static method in enum Signal
Returns an array containing the constants of this enum type, in the order they are declared.
vanillaCircuit - Variable in class P5Tests
 

W

Wire - Class in <Unnamed>
Wire are connectors between different gates and circuits.
Wire(String) - Constructor for class Wire
The constructor that initializes the name and sets the signal on the defualt value x.
wire1() - Method in class P5Tests
 
wire2() - Method in class P5Tests
 
wire3() - Method in class P5Tests
 
wire4() - Method in class P5Tests
 
wire5() - Method in class P5Tests
 
wire6() - Method in class P5Tests
 
wires1 - Variable in class P5Tests
 
wires2 - Variable in class P5Tests
 
wires3 - Variable in class P5Tests
 
wires4 - Variable in class P5Tests
 
A C E F G H I L M O P R S T V W 
Skip navigation links