The Time Slot Splitter compares a time slot D with a reference time slot R and divides D into two time slots:
Time slot I, which is inside the reference time slot R
Time slot O, which is outside the reference time slot R
The illustration below shows different cases you can meet when using a Time Slot Splitter. The time slots are represented as follow:
Time slot D, represented by [D1-D2]
Time slot R, represented by [R1-R2]
Time slot I, represented by [I1-I2]
Time slot O, represented by [O1-O2]

|
Notes:
|
When you insert it in the decision tree, the Time Slot Splitter component divides the time slot D into two time slots and creates:
Two separate branches in the decision tree:
The first branch “In the Time Slot,” which represents the time slot I
The second branch “Out of the Time Slot,” which represents the time slot O
Two date properties which are the start date and the end date of the time slots I and O:
The start date takes two values I1 and O1 in succession, depending on the branch
The end date takes two values I2 and O2 in succession, depending on the branch
When the component is executed, the two branches are activated and provide two amounts which are added up to compute the final amount. If I = 0 or O = 0, the corresponding branch is not activated.
|
Warning: If D = 0, (case of D1 = D2), no branch is activated and no transaction is generated (like with a Free Function). |
If the Time Slot Splitter component processes "case 5" in the previous illustration, it does the following in this order:
Process of the first time slot [O1 - O2] with Start Date (out of the slot) = O1 and End Date (out of the slot) = O2.
Process of the time slot [I1 - I2] with Start Date (in the slot) = I1 and End Date (in the slot) = I2.
Process of the last time slot [O1 - O2] with Start Date (out of the slot) = O1 and End Date (out of the slot) = O2.
|
Note: In a price plan, you may need to apply prices which vary according to different time slots. The Time Slot Splitter component is often used to calculate the cost of a telephone call, the price of which varies according to the cases that are shown in the following table:
|
A customer has a telephone service that includes a reduced price of $0.02 per minute every day during the 10:00 PM to 6:00 AM time slot. Outside this time slot, the call costs $0.04 per minute. To calculate the cost of a call, you need to do the following:
Compare the call time slot with the reference time slot (10:00 PM to 6:00 AM).
Divide the call time slot into two time slots: “In the Time Slot “ and “Out of the Time Slot”.
Calculate the duration of the two time slots and apply the corresponding price. For example, you insert a Duration Operator component into the two branches to calculate the duration, and then insert a Linear Function component to calculate the price of each branch.
The following table presents the information that is needed to set up the Time Slot component inside the price plan:
|
Data |
Settings |
|
Time Slot D |
Start date of the phone call (D1). Stop date of the phone call (D2). |
|
Reference Time Slot R |
Type: Daily. From: 10:00 PM To: 06:00 AM. |
|
Generated property |
Start Date and End Date (in the slot): [I1 - I2] Start Date and End Date (out of the slot): [O1 - O2] |
|
Pricing rules |
Duration of each time slot: Difference between the two generated properties Start Date and End Date for each time slot. Price that is applied to the “In The Time Slot” branch: $0.02 per minute. Price that is applied to the “Out of The Time Slot” branch: $0.04 per minute. |
Name: Type the name of the component (mandatory).
Description: Allows you to type the description of the component (optional).
Start Date Name: Provides the list of date properties. Select the date property that represents the value D1 of the [D1-D2] time slot.
End Date Name: Provides the list of date properties. Select the date property that represents the value D2 of the [D1-D2] time slot.
Time Slot Parameters: Allows you to set up the reference time slot [R1-R2].
Time Slot Type: Provides the list of time slots. Select one of the following time slots:
daily
weekly
monthly
yearly
From: Allows you to select or type a start date or time (hour and minute) of the time slot.
At: Allows you to select or type a time (hour and minute).
To: Allows you to select or type an end date or time (hour and minute) of the time slot.
|
Note: Depending on the selected time slot, the format varies as shown in the following examples:
|
Names of Computed Properties: Allows you to type the names of the new date properties that retrieve the resulting time slots. These properties can be reused in a Duration Operator component to calculate a duration.
Start Date (in the slot): Allows you to type the name of the new date property that retrieves the start date of the resulting time slot [I1 - I2]. You can reuse this computed property in the branch "In the Time Slot" of the decision tree.
End Date (in the slot): Allows you to type the name of the new date property that retrieves the end date of the resulting time slot [I1 - I2]. You can reuse this computed property in the branch "In the Time Slot" of the decision tree.
Start Date (out of the slot): Allows you to type the name of the new date property that retrieves the start date of the resulting time slot [O1 - O2]. You can reuse this computed property in the branch "Out of the Time Slot" of the decision tree.
End Date (out of the slot): Allows you to type the name of the new date property that retrieves the end date of the resulting time slot [O1 - O2]. You can reuse this computed property in the branch "Out of the Time Slot" of the decision tree.