public class Contact
extends java.lang.Object
Constructor and Description |
---|
Contact(Wire in,
Wire out,
boolean inbound)
Contact constructor, construct the disign of contact class
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
public boolean equals(Object o).
|
Wire |
getIn()
getIn
|
boolean |
getInbound()
getInbound
|
Wire |
getOut()
getOut
|
void |
setIn(Wire in)
setIn sets the wire in of this contact to parameter value in
|
void |
setInbound(boolean inbound)
setInbound sets the inbound of this contact in to parameter value inbound
|
void |
setOut(Wire out)
setOut sets the wire out of this contact to parameter value out
|
java.lang.String |
toString()
Overrides toString() to represent a contact wire
there are two different way to construct this string
1.
|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- is the object that we compare too.public void setIn(Wire in)
in
- the value to set the wire inpublic void setOut(Wire out)
out
- the value to set the wire outpublic void setInbound(boolean inbound)
inbound
- the value boolean to the inboundpublic Wire getIn()
public Wire getOut()
public boolean getInbound()