Timeslots should have informative representation
See original GitHub issueWhat is the expected enhancement?
Currently Interval, Timeslot and TimeslotCollection have the standard python object representation. This should be replaced with an informative implementation of __repr__. As TimeslotCollection contains Timeslots and Timeslots contain Intervals the hierarchal nature of these data structure should be used to derive representations.
Example
A possible representation might look like
Interval:
(t0, tf) eg. (0, 10)
Timeslot: Is an interval on a channel
(channel, repr(interval)): (DriveChannel(0), (0, 10))
TimeslotCollection: Is a dictionary of timeslots. Ie. it groups together intervals on channels.
{channel1: [repr(interval1_c1), repr(interval2_c1), ...]), channel2: [repr(interval1_c2), repr(interval2_c2), ...]}
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Deciding the best way of modeling a timeslot or period of time ...
The initial idea was that a timeslot would be just an abstract representation of a period of time, and giving it more sense...
Read more >Represent and compare time slots - java - Stack Overflow
Save this answer. Show activity on this post. You can create a TimeSlot objects and compare each start and endtimes.
Read more >TimeSlot | Object Reference for the Salesforce Platform
Represents a period of time on a specified day of the week during which work can be performed in Field Service, Salesforce Scheduler,...
Read more >Having Students Book Presentation Time Slots in Microsoft ...
Having Students Book Presentation Time Slots in Microsoft Teams using Microsoft ListsWhen you need to allocate presentation time slots or ...
Read more >Troubleshooting timeslots - ADM Help Centers
This section provides information for troubleshooting issues related to autostart timeslots. In this topic: Test failed to run with reserved ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Currently, this functionality is handled by the TimeslotCollection
Yeah, that would be helpful to have printed out as well. I will make that addition, and then open the PR.