com.miginfocom.util
Class ActivityHelper

java.lang.Object
  extended by com.miginfocom.util.ActivityHelper

public class ActivityHelper
extends java.lang.Object

Helper class. Not to be used in production.

Note that this class can be removed at any time!


Constructor Summary
ActivityHelper()
           
 
Method Summary
static java.util.ArrayList createActivities(DateRangeI dateRange, java.lang.String[] summaries, java.lang.String[] descriptions, java.lang.Object[] mainCatIDs, java.lang.Object[][] subArrayCatIDs, int roundTo, int minGap, int maxGap, int minLength, int maxLength, int maxActCount, boolean hasTime, java.lang.String layoutContext)
          Creates a number of test activities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityHelper

public ActivityHelper()
Method Detail

createActivities

public static java.util.ArrayList createActivities(DateRangeI dateRange,
                                                   java.lang.String[] summaries,
                                                   java.lang.String[] descriptions,
                                                   java.lang.Object[] mainCatIDs,
                                                   java.lang.Object[][] subArrayCatIDs,
                                                   int roundTo,
                                                   int minGap,
                                                   int maxGap,
                                                   int minLength,
                                                   int maxLength,
                                                   int maxActCount,
                                                   boolean hasTime,
                                                   java.lang.String layoutContext)
Creates a number of test activities.

Note that this method can be removed at any time!

Parameters:
dateRange - The range to create in
summaries - The summaries. One will be randomly be selected for every activity created. "Summary" if null. Not length 0.
descriptions - The descriptions. One will be randomly be selected for every activity created. "Category" if null. Not length 0.
mainCatIDs - The categories. One will be randomly be selected for every activity created. No categories if null. Not length 0.
subArrayCatIDs - for every array one category id will be randomized and tied to the activity. A null element would mean no category.
roundTo - The millisecond boundary to round start and end to. E.g. 15*60*1000 for round minutes to 0, 15, 30 or 45.
minGap - Milliseconds. Minimum gap between two adjacent activities. Can be negative.
maxGap - Milliseconds. Maximum gap between two adjacent activities. Can be negative.
minLength - Milliseconds. Minmum lengh if an activity.
maxLength - Milliseconds. Maximum lengh if an activity.
maxActCount - The maximum number of activities that will be created.
hasTime - Is the activity has time of day. false usually means whole Day activities.
layoutContext - The layout context set on the activity. If null nothing will be set.
Returns:
A number of new activities.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.