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

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

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

This object is a container for the availability interval associated with a Workstaion 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 WorkstationInPlanAvailabilityIntervals objects in ZOS environment:

intervalEndDateTime Cannot be null. Must be after intervalStartDateTime
intervalStartDateTime Cannot be null. Must be before intervalEndDateTime.
modifiedSettings See WorkstationInPlanAvailabilitySettings for constraints on this field
plannedSettings See WorkstationInPlanAvailabilitySettings for constraints on this field
description Not used.

See Also:
types.WorkstationInPlanAvailabilitySettings, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
WorkstationInPlanAvailabilityIntervals()
          Creates an empty WorkstationAvailabilityInterval object.
WorkstationInPlanAvailabilityIntervals(java.util.Date startDateTime, java.util.Date endDateTime)
          Create a workstyationin plan availability interval with the specified start date-time and end date-time
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this WorkstationInPlanAvailabilityInterval object are equal to those of the given one.
 java.lang.String getDescription()
          Returns the Description
 java.util.Date getIntervalEndDateTime()
          Returns the Interval End Date
 java.util.Date getIntervalStartDateTime()
          Returns the Interval Start Date
 WorkstationInPlanAvailabilitySettings getModifiedSettings()
          Returns the Modified settings for this interval
 WorkstationInPlanAvailabilitySettings getPlannedSettings()
          Returns the Planned settings for this interval
 int hashCode()
          Returns a hash code for this WorkstationInPlanAvailabilityInterval object.
 void setDescription(java.lang.String description)
          Sets the description
 void setIntervalEndDateTime(java.util.Date endDateAndTime)
          Sets the Interval End Date
 void setIntervalStartDateTime(java.util.Date startDateAndTime)
          Sets the Interval Start Date
 java.lang.String toString()
          Returns a string representation of this WorkstationAvailabilityInterval 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

WorkstationInPlanAvailabilityIntervals

public WorkstationInPlanAvailabilityIntervals()
Creates an empty WorkstationAvailabilityInterval object.


WorkstationInPlanAvailabilityIntervals

public WorkstationInPlanAvailabilityIntervals(java.util.Date startDateTime,
                                              java.util.Date endDateTime)
Create a workstyationin plan availability interval with the specified start date-time and end date-time

Parameters:
startDateTime -
endDateTime -
Method Detail

getIntervalStartDateTime

public java.util.Date getIntervalStartDateTime()
Returns the Interval Start Date

Returns:
Returns the intervalStartDateTime.

getIntervalEndDateTime

public java.util.Date getIntervalEndDateTime()
Returns the Interval End Date

Returns:
Returns the intervalEndDateTime.

getDescription

public java.lang.String getDescription()
Returns the Description

Returns:
Returns the description.

getPlannedSettings

public WorkstationInPlanAvailabilitySettings getPlannedSettings()
Returns the Planned settings for this interval

Returns:
The Planned settings for this interval

getModifiedSettings

public WorkstationInPlanAvailabilitySettings getModifiedSettings()
Returns the Modified settings for this interval

Returns:
The Modified settings for this interval

setIntervalStartDateTime

public void setIntervalStartDateTime(java.util.Date startDateAndTime)
Sets the Interval Start Date

Parameters:
startDateAndTime - The intervalStartDateTime to set.

setIntervalEndDateTime

public void setIntervalEndDateTime(java.util.Date endDateAndTime)
Sets the Interval End Date

Parameters:
endDateAndTime - The intervalEndDateTime to set.

setDescription

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

Parameters:
description - The description to set.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this WorkstationInPlanAvailabilityInterval 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 WorkstationInPlanAvailabilityInterval object.

Returns:
The object's hash code.

toString

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

Returns:
A text string including all WorkstationAvailabilityInterval fields.


Copyright © 2005 IBM All Rights Reserved.