Class Pin_std
java.lang.Object
|
+--Pin_std
- public class Pin_std
- extends java.lang.Object
- implements Pin
This class is the standard implementation of interface Pin.
You can read the source of this class here.
Constructor Summary |
Pin_std(DigitalComponent c,
int RemotePin,
boolean InitialState)
Creates a new pin connected to pin RemotePin of c with the state InitialState. |
Method Summary |
boolean |
getState()
Returns the state of the pin. |
void |
setState(boolean state)
Sets the state of the pin. |
void |
setStateDontNotify(boolean state)
Sets the state of the pin without notifying the other component. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Pin_std
public Pin_std(DigitalComponent c,
int RemotePin,
boolean InitialState)
- Creates a new pin connected to pin RemotePin of c with the state InitialState.
setStateDontNotify
public void setStateDontNotify(boolean state)
- Description copied from interface: Pin
- Sets the state of the pin without notifying the other component.
- Specified by:
- setStateDontNotify in interface Pin
setState
public void setState(boolean state)
- Description copied from interface: Pin
- Sets the state of the pin.
- Specified by:
- setState in interface Pin
getState
public boolean getState()
- Description copied from interface: Pin
- Returns the state of the pin.
- Specified by:
- getState in interface Pin