Agentflow
V3.1

si.wfcidata
Class AFScheduleManager

java.lang.Object
  extended by si.wfcidata.AFScheduleManager

public class AFScheduleManager
extends java.lang.Object

AFScheduleManager

Version:
1.1.5,
Author:
Flowring co.

Constructor Summary
AFScheduleManager(WFCI wfci)
          Constructor
 
Method Summary
 java.util.Vector getHalfHolidays()
          Get the half-holidays list.
 java.util.Vector getHolidays()
          Get the holidays list.
 int[] getWeek()
          Get the weeks list.
 java.util.Vector getWorkdays()
          Get the workdays list.
 void initHoliday()
          Initialize holidays.
 boolean isHalfHoliday(java.lang.String date)
          Check specified date whether it's a half of holiday or not.
 boolean isHoliday(java.lang.String date)
          Check specified date whether it's a holiday or not.
 boolean isRestSat(java.lang.String date)
          Check specified date whether it's a rest Saturday or not.
 void saveSchedule(java.util.Vector hdays, java.util.Vector h_days, java.util.Vector wdays, int[] w)
          Save server's schedule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFScheduleManager

public AFScheduleManager(WFCI wfci)
Constructor

Parameters:
wfci - WFCI interface
Method Detail

getHalfHolidays

public java.util.Vector getHalfHolidays()
                                 throws WFCIException
Get the half-holidays list.

Returns:
a Vector of date.
Throws:
WFCIException
Since:
version 1.1.5

getHolidays

public java.util.Vector getHolidays()
                             throws WFCIException
Get the holidays list.

Returns:
a Vector of date.
Throws:
WFCIException
Since:
version 1.1.5

getWeek

public int[] getWeek()
              throws WFCIException
Get the weeks list.

Returns:
an array of integer.
Throws:
WFCIException
Since:
version 1.1.5

getWorkdays

public java.util.Vector getWorkdays()
                             throws WFCIException
Get the workdays list.

Returns:
a Vector of date.
Throws:
WFCIException
Since:
version 1.1.5

initHoliday

public void initHoliday()
                 throws WFCIException
Initialize holidays.

Throws:
WFCIException
Since:
version 1.1.5

isHalfHoliday

public boolean isHalfHoliday(java.lang.String date)
                      throws WFCIException
Check specified date whether it's a half of holiday or not.

Parameters:
date - the givin Date format String
Returns:
true if the date is a half of holiday; false otherwise.
Throws:
WFCIException
Since:
version 1.0.0

isHoliday

public boolean isHoliday(java.lang.String date)
                  throws WFCIException
Check specified date whether it's a holiday or not.

Parameters:
date - the givin Date format String
Returns:
true if the date is a holiday; false otherwise.
Throws:
WFCIException
Since:
version 1.0.0

isRestSat

public boolean isRestSat(java.lang.String date)
                  throws WFCIException
Check specified date whether it's a rest Saturday or not.

Parameters:
date - the givin Date format String
Returns:
true if the date is rest Saturday; false otherwise.
Throws:
WFCIException
Since:
version 1.1.5

saveSchedule

public void saveSchedule(java.util.Vector hdays,
                         java.util.Vector h_days,
                         java.util.Vector wdays,
                         int[] w)
                  throws WFCIException
Save server's schedule.

Parameters:
hdays - the Vector of holidays date
h_days - the Vector of half-holidays date
wdays - the Vector of workdays date
w - the array of weeks integer
Throws:
WFCIException
Since:
version 1.1.5

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.