com.ibm.tws.objects.model.types
Class WorkstationAvailabilityInterval

java.lang.Object
  extended bycom.ibm.tws.objects.types.AvailabilityInterval
      extended bycom.ibm.tws.objects.model.types.WorkstationAvailabilityInterval
All Implemented Interfaces:
java.io.Serializable

public class WorkstationAvailabilityInterval
extends AvailabilityInterval

This class includes the information required to describe an availability interval of a z/OS workstation.

The following syntax validation constraints must be met on WorkstationAvailabilityInterval objects in z/OS environment:

zosNumberOfParallelServers Always required
Valid range is from 0 to 99
Default value is 0
zosR1Capacity Always required
Valid range is from 0 to 99
Default value is 0
zosR1Capacity Always required
Valid range is from 0 to 99
Default value is 0
alternateWorkstationKey Must reference an existing workstation
isClosed Default value is false

See Also:
Workstation, AvailabilityInterval, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
WorkstationAvailabilityInterval()
          Creates an empty WorkstationAvailabilityInterval object.
WorkstationAvailabilityInterval(boolean isStandard, long startTime, long endTime)
          Creates a WorkstationAvailabilityInterval object using the "STANDARD" value as a validity interval, and specifying a start and end time.
WorkstationAvailabilityInterval(java.util.Date date, long startTime, long endTime)
          Creates a WorkstationAvailabilityInterval object using a specific date as a validity interval, and specifying a start and end time.
WorkstationAvailabilityInterval(int dayOfWeek, long startTime, long endTime)
          Creates a WorkstationAvailabilityInterval object using a day of week as a validity interval, and specifying a start and end time.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this WorkstationAvailabilityInterval object are equal to those of the given one.
 FlowTargetKey getAlternateWorkstationKey()
          Returns the key of the alternate workstation associated to this availability interval.
 int getZosNumberOfParallelServers()
          Returns the zosNumberOfParallelServers attribute.
 int getZosR1Capacity()
          Returns the zosR1Capacity attribute.
 int getZosR2Capacity()
          Returns the zosR2Capacity attribute.
 int hashCode()
          Returns a hash code for this WorkstationAvailabilityInterval object.
 boolean isClosed()
          Returns true if the interval is closed.
 void setAlternateWorkstationKey(FlowTargetKey value)
          Sets the key of the alternate workstation associated to this availability interval.
 void setClosed(boolean value)
          Sets the property used to decide if this interval is closed.
 void setZosNumberOfParallelServers(int value)
          Sets the zosNumberOfParallelServers attribute.
 void setZosR1Capacity(int value)
          Sets the zosR1Capacity attribute.
 void setZosR2Capacity(int value)
          Sets the zosR2Capacity attribute.
 java.lang.String toString()
          Returns a string representation of this WorkstationAvailabilityInterval object.
 
Methods inherited from class com.ibm.tws.objects.types.AvailabilityInterval
getDescription, getIntervalEndTime, getIntervalStartTime, getIntervalValidityDate, getIntervalValidityDayOfWeek, isDateIntervalType, isDayOfWeekIntervalType, isStandardIntervalType, setDescription, setIntervalEndTime, setIntervalStartTime, setIntervalValidityDate, setIntervalValidityDayOfWeek, setIntervalValidityToStandard
 
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

WorkstationAvailabilityInterval

public WorkstationAvailabilityInterval()
Creates an empty WorkstationAvailabilityInterval object.


WorkstationAvailabilityInterval

public WorkstationAvailabilityInterval(boolean isStandard,
                                       long startTime,
                                       long endTime)
Creates a WorkstationAvailabilityInterval object using the "STANDARD" value as a validity interval, and specifying a start and end time.

Parameters:
isStandard - True to build a standard interval.
startTime - The start time for this interval.
endTime - The end time for this interval.

WorkstationAvailabilityInterval

public WorkstationAvailabilityInterval(int dayOfWeek,
                                       long startTime,
                                       long endTime)
Creates a WorkstationAvailabilityInterval object using a day of week as a validity interval, and specifying a start and end time.

Parameters:
dayOfWeek - The day of week (Sunday to Saturday) when this interval is valid. Use constants from java.util.Calendar (Calendar.MONDAY, ... Calendar.SUNDAY).
startTime - The start time for this interval.
endTime - The end time for this interval.

WorkstationAvailabilityInterval

public WorkstationAvailabilityInterval(java.util.Date date,
                                       long startTime,
                                       long endTime)
Creates a WorkstationAvailabilityInterval object using a specific date as a validity interval, and specifying a start and end time.

Parameters:
date - The date when this interval is valid.
startTime - The start time for this interval.
endTime - The end time for this interval.
Method Detail

getZosNumberOfParallelServers

public int getZosNumberOfParallelServers()
Returns the zosNumberOfParallelServers attribute.

Returns:
The zosNumberOfParallelServers attribute.

getZosR1Capacity

public int getZosR1Capacity()
Returns the zosR1Capacity attribute.

Returns:
The zosR1Capacity attribute.

getZosR2Capacity

public int getZosR2Capacity()
Returns the zosR2Capacity attribute.

Returns:
The zosR2Capacity attribute.

getAlternateWorkstationKey

public FlowTargetKey getAlternateWorkstationKey()
Returns the key of the alternate workstation associated to this availability interval.

Returns:
The key of the alternate workstation associated to this availability interval.

isClosed

public boolean isClosed()
Returns true if the interval is closed.

Returns:
True if the interval is closed.

setZosNumberOfParallelServers

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

Parameters:
value - The zosNumberOfParallelServers attribute.

setZosR1Capacity

public void setZosR1Capacity(int value)
Sets the zosR1Capacity attribute.

Parameters:
value - The zosR1Capacity attribute.

setZosR2Capacity

public void setZosR2Capacity(int value)
Sets the zosR2Capacity attribute.

Parameters:
value - The zosR2Capacity attribute.

setAlternateWorkstationKey

public void setAlternateWorkstationKey(FlowTargetKey value)
Sets the key of the alternate workstation associated to this availability interval.

Parameters:
value - The key of the alternate workstation associated to this availability interval.

setClosed

public void setClosed(boolean value)
Sets the property used to decide if this interval is closed.

Parameters:
value - True if this interval is closed.

equals

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

Overrides:
equals in class AvailabilityInterval
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 WorkstationAvailabilityInterval object.

Overrides:
hashCode in class AvailabilityInterval
Returns:
The object's hash code.

toString

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

Overrides:
toString in class AvailabilityInterval
Returns:
A text string including all WorkstationAvailabilityInterval fields.


Copyright © 2005 IBM All Rights Reserved.