jreceiver.common.rec.driver
Class SignalKey

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.driver.SignalKey
All Implemented Interfaces:
Hashable, Key

public class SignalKey
extends BaseRec
implements Key

An interface describing a signal associated with a driverbind profile.

Version:
$Revision: 1.2 $ $Date: 2002/12/29 00:44:06 $
Author:
Reed Esau

Field Summary
protected  int cmd_id
           
protected  DriverBindingKey drvbind_key
           
static java.lang.String HKEY_CMD_ID
           
static java.lang.String HKEY_DRVBIND_KEY
           
 
Constructor Summary
SignalKey(DriverBindingKey drvbind_key, int cmd_id)
          ctor
SignalKey(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int getCmdId()
           
 DriverBindingKey getDriverBindingKey()
           
 boolean isValid()
          return true if the key is internally sound
 java.util.Hashtable toHash()
          Store the object as a hash suitable for transport over an XML-RPC connection or similar.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class jreceiver.common.rec.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HKEY_DRVBIND_KEY

public static final java.lang.String HKEY_DRVBIND_KEY

HKEY_CMD_ID

public static final java.lang.String HKEY_CMD_ID

drvbind_key

protected DriverBindingKey drvbind_key

cmd_id

protected int cmd_id
Constructor Detail

SignalKey

public SignalKey(DriverBindingKey drvbind_key,
                 int cmd_id)
ctor

SignalKey

public SignalKey(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Parameters:
hash -  
Method Detail

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object

getDriverBindingKey

public DriverBindingKey getDriverBindingKey()

getCmdId

public int getCmdId()

isValid

public boolean isValid()
return true if the key is internally sound

toHash

public java.util.Hashtable toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar.

Use SignalRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Returns:
 

toString

public java.lang.String toString()
Description copied from interface: Hashable
Returns a string representation of the object.
Specified by:
toString in interface Hashable
Overrides:
toString in class java.lang.Object


Copyright © 2001-2002 Reed Esau, All Rights Reserved.