public class WatchdogTimerConfig extends java.lang.Object implements DeviceConfig<WatchdogTimer>, DeviceConfig.HardwareAddressing
WatchdogTimerConfig class encapsulates the hardware addressing information, and static and dynamic
configuration parameters of a watchdog timer.
Some hardware addressing parameter, and static and dynamic configuration parameters may be set to DeviceConfig.DEFAULT.
Whether such default settings are supported is platform- as well as device driver-dependent.
An instance of WatchdogTimerConfig can be passed to the DeviceManager.open(DeviceConfig) or
DeviceManager.open(Class, DeviceConfig) method to open the designated watchdog timer with the specified
configuration. A InvalidDeviceConfigException is thrown when attempting to open a device with
an invalid or unsupported configuration.DeviceConfig.HardwareAddressingDEFAULT| Constructor and Description |
|---|
WatchdogTimerConfig(int controllerNumber,
int timerNumber)
Creates a new
WatchdogTimerConfig with the specified hardware addressing information. |
WatchdogTimerConfig(java.lang.String controllerName,
int timerNumber)
Creates a new
WatchdogTimerConfig with the specified hardware addressing information. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks two
WatchdogTimerConfig objects for equality. |
java.lang.String |
getControllerName()
Gets the configured controller name (such as its device file name on UNIX systems).
|
int |
getControllerNumber()
Gets the configured controller number.
|
int |
getTimerNumber()
Gets the configured timer number.
|
int |
hashCode()
Returns the hash code value for this object.
|
public WatchdogTimerConfig(java.lang.String controllerName,
int timerNumber)
WatchdogTimerConfig with the specified hardware addressing information.controllerName - the controller name (such as its device file name on UNIX systems).timerNumber - the hardware timer's number (a positive or zero integer) or DeviceConfig.DEFAULT.java.lang.IllegalArgumentException - if timerNumber is not in the defined range.java.lang.NullPointerException - if controller name is null.public WatchdogTimerConfig(int controllerNumber,
int timerNumber)
WatchdogTimerConfig with the specified hardware addressing information.controllerNumber - the controller number (a positive or zero integer) or DeviceConfig.DEFAULT.timerNumber - the hardware timer's number (a positive or zero integer) or DeviceConfig.DEFAULT.java.lang.IllegalArgumentException - if timerNumber is not in the defined range.java.lang.NullPointerException - if controller name is null.public int getTimerNumber()
DeviceConfig.DEFAULT.public int getControllerNumber()
getControllerNumber in interface DeviceConfig.HardwareAddressingDeviceConfig.DEFAULT.public java.lang.String getControllerName()
getControllerName in interface DeviceConfig.HardwareAddressingnull.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
WatchdogTimerConfig objects for equality.equals in class java.lang.Objectobj - the object to test for equality with this object.true if obj is a WatchdogTimerConfig and has
the same hardware addressing information and configuration parameter values
as this WatchdogTimerConfig object.Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.
Legal Notices