public class Wire
extends java.lang.Object
Constructor and Description |
---|
Wire(java.lang.String name)
The constructor that initializes the name and sets
the signal on the defualt value x.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
public boolean equals(Object other).
|
java.lang.String |
getName()
getName
|
Signal |
getSignal()
getSignal
|
void |
setName(java.lang.String name)
setName sets the name to parameter value
|
void |
setSignal(Signal signal)
setSignal set the signal with the new parameter
|
java.lang.String |
toString()
toString overrides the toStirng by concated togother
the name + : and the signal for this wire
|
public Wire(java.lang.String name)
name
- is the name of wirepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- is the object that we compare too.public Signal getSignal()
public java.lang.String getName()
public void setSignal(Signal signal)
signal
- the value to set the signalpublic void setName(java.lang.String name)
name
- the value to set the name