com.ibm.tws.objects.plan
Class ResourceInPlanKey

java.lang.Object
  extended bycom.ibm.tws.objects.plan.ResourceInPlanKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class ResourceInPlanKey
extends java.lang.Object
implements TWSKey

This object represents a resource in plan external key, including fields used to identify a resource in TWS external interfaces. Since a resource is identified by its name and by a referenced workstation, this class includes a name attribute and a reference to a WorkstationInPlanKey object.

See Also:
ResourceInPlan, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
ResourceInPlanKey()
          Creates an empty Resource key.
ResourceInPlanKey(java.lang.String name, WorkstationInPlanKey key)
          Creates a Resource Key
 
Method Summary
 boolean equals(java.lang.Object object)
          equality method.
 java.lang.String getName()
          Returns the key name.
 WorkstationInPlanKey getWorkstationKey()
          Returns the key of the Workstation to which this resource refer.
 int hashCode()
          Returns a hash code for this ResourceInPlanKey object.
 void setName(java.lang.String string)
          Sets The resource name
 void setWorkstationKey(WorkstationInPlanKey key)
          Sets the key of the Workstation to which this Resource refer.
 java.lang.String toString()
          Returns a string representation of this ResourceInPlanKey.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

ResourceInPlanKey

public ResourceInPlanKey()
Creates an empty Resource key.


ResourceInPlanKey

public ResourceInPlanKey(java.lang.String name,
                         WorkstationInPlanKey key)
Creates a Resource Key

Parameters:
name - The resource key
key - The Workstation key
Method Detail

getName

public java.lang.String getName()
Returns the key name.

Specified by:
getName in interface TWSKey
Returns:
The key name.

setName

public void setName(java.lang.String string)
Sets The resource name

Parameters:
string - the new key name

equals

public boolean equals(java.lang.Object object)
equality method.

Parameters:
object - the object to be compared
Returns:
true if the object is equal to this one.

hashCode

public int hashCode()
Returns a hash code for this ResourceInPlanKey object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this ResourceInPlanKey.

Returns:
A text string including all ResourceInPlanKey fields.

getWorkstationKey

public WorkstationInPlanKey getWorkstationKey()
Returns the key of the Workstation to which this resource refer.

Returns:
the workstation key

setWorkstationKey

public void setWorkstationKey(WorkstationInPlanKey key)
Sets the key of the Workstation to which this Resource refer.

Parameters:
key - the workstation key


Copyright © 2005 IBM All Rights Reserved.