com.ibm.tws.objects.plan.types
Class WorkstationInPlanAvailabilitySettings

java.lang.Object
  extended bycom.ibm.tws.objects.plan.types.WorkstationInPlanAvailabilitySettings
All Implemented Interfaces:
java.io.Serializable

public class WorkstationInPlanAvailabilitySettings
extends java.lang.Object
implements java.io.Serializable

This object contains the specific attributes associated to each availability interval for a Workstation in plan object. Currently it is only used for z/OS workstations, but in the future its usage can be extended also to the TWS distributed workstations.

The following syntax validation constraints must be met on WorkstationInPlanAvailabilitySettings objects in ZOS environment:

alternateWorkstation Alternate workstation must be an existing Workstation in database.
Workstation type must be WorkstationType.COMPUTER
Alternate workstation must be different from the current workstation.
Alternate can be specified only if original workstation has type WorkstationType.COMPUTER.
zosNumberOfParallelServer Default is 0. Valid range is 0-99.
zosR1Capacity Default is 0. Valid range is 0-99.
zosR2Capacity Default is 0. Valid range is 0-99.
description Not used.

See Also:
WorkstationType, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
WorkstationInPlanAvailabilitySettings()
          Creates an empty WorkstationInPlanAvailabilitySettings object.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this WorkstationInPlanAvailabilitySettings object are equal to those of the given one.
 WorkstationInPlanKey getAlternateWorkstation()
          Returns the alternate Workstation associated to the workstation for the specific interval.
 java.lang.String getDescription()
          Returns the description attribute.
 int getZosNumberOfParallelServers()
          Returns the zosNumberOfParallelServers attribute.
 int getZosR1Capacity()
          Returns the capacity of the zosR1 fixed resource associated to the workstation for the specific interval.
 int getZosR2Capacity()
          Returns the capacity of the zosR2 fixed resource associated to the workstation for the specific interval.
 int hashCode()
          Returns a hash code for this WorkstationInPlanAvailabilitySettings object.
 void setAlternateWorkstation(WorkstationInPlanKey alternateWorkstation)
          Sets the alternate Workstation to be associated to this workstation for the specific interval.
 void setDescription(java.lang.String value)
          Sets the description attribute.
 void setZosNumberOfParallelServers(int value)
          Sets the zosNumberOfParallelServers attribute.
 void setZosR1Capacity(int value)
          Sets the capacity of the zosR1 fixed resource to be associated to the workstation for the specific interval.
 void setZosR2Capacity(int value)
          Sets the capacity of the zosR2 fixed resource to be associated to the workstation for the specific interval.
 java.lang.String toString()
          Returns a string representation of this WorkstationInPlanAvailabilitySettings object.
 
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

WorkstationInPlanAvailabilitySettings

public WorkstationInPlanAvailabilitySettings()
Creates an empty WorkstationInPlanAvailabilitySettings object.

Method Detail

getDescription

public java.lang.String getDescription()
Returns the description attribute.

Returns:
The description attribute.

getZosNumberOfParallelServers

public int getZosNumberOfParallelServers()
Returns the zosNumberOfParallelServers attribute.

Returns:
The number of zosParallelServers associated to the workstation for the specific Interval.

getZosR1Capacity

public int getZosR1Capacity()
Returns the capacity of the zosR1 fixed resource associated to the workstation for the specific interval.

Returns:
The zosR1 fixed resource capacity

getZosR2Capacity

public int getZosR2Capacity()
Returns the capacity of the zosR2 fixed resource associated to the workstation for the specific interval.

Returns:
The zosR2 fixed resource capacity

getAlternateWorkstation

public WorkstationInPlanKey getAlternateWorkstation()
Returns the alternate Workstation associated to the workstation for the specific interval.

Returns:
The key of the associated alternate Workstation. If workstation.name() is null, no alternate workstation exists.

setDescription

public void setDescription(java.lang.String value)
Sets the description attribute.

Parameters:
value - The description attribute.

setZosNumberOfParallelServers

public void setZosNumberOfParallelServers(int value)
Sets the zosNumberOfParallelServers attribute.

Parameters:
value - The number of zosParallelServers to be associated to the workstation for the specific Interval.

setZosR1Capacity

public void setZosR1Capacity(int value)
Sets the capacity of the zosR1 fixed resource to be associated to the workstation for the specific interval.

Parameters:
value - The capacity of the zosR1 fixed resource

setZosR2Capacity

public void setZosR2Capacity(int value)
Sets the capacity of the zosR2 fixed resource to be associated to the workstation for the specific interval.

Parameters:
value - The capacity of the zosR2 fixed resource

setAlternateWorkstation

public void setAlternateWorkstation(WorkstationInPlanKey alternateWorkstation)
Sets the alternate Workstation to be associated to this workstation for the specific interval.

Parameters:
alternateWorkstation - The key of an alternate Workstation

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this WorkstationInPlanAvailabilitySettings object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

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

Returns:
The object's hash code.

toString

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

Returns:
A text string including all WorkstationInPlanAvailabilitySettings fields.


Copyright © 2005 IBM All Rights Reserved.