Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Tinderbox applications >> Teaching- TBX Seating Chart
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1408298080

Message started by Steve Scott on Aug 17th, 2014, 1:54pm

Title: Teaching- TBX Seating Chart
Post by Steve Scott on Aug 17th, 2014, 1:54pm

One of the challenging aspects of teaching is learning the names of all of the students at the beginning of the semester. áI am trying to create a TBX application which will feature a seating chart with pictures for each student. áI have done this before in other apps, but tinderbox could theoretically take this much farther. . . á

I would like to invite community involvement in this project. áLet me know if you have any ideas or would like to contribute to the code. á

Here are my current thoughts:

container for students
- Each class has a container with student names. áThere is a pStudent prototype that uses this rule: á


Code:
$seatNum = $SiblingOrder;$period=$period(parent)


There is a smart adornment that looks like this:



Each smart adornment this code: $seatNum="1"; to pull the student to the appropriate seat. áNeed to change seats? áJust change the order of the students the "container for students" áWant to make a different seating arrangement? áCreate a new agent and drag the smart adornments to a different position. áWant to update it for another class? áJust change the agent and let the smart agent do the work. áWant to have small groups? áJust create a new agent. . .



This is how it could work in theory, but I'm having some problems. á

I have asked a few questions http://www.eastgate.com/Tinderbox/forum//YaBB.pl?num=1408289740/4#4 and http://www.eastgate.com/Tinderbox/forum//YaBB.pl?num=1408288425, but I am going to move everything into this thread.

I will upload the document in progress. . .

Title: Re: Teaching- TBX Seating Chart
Post by Mark Anderson on Aug 17th, 2014, 2:07pm

One immediate issue I see is Smart Adornments don't support overlap (see my answer elsewhere). Still. If each adornment and each student image have a unifying piece of data, then an agent could collect all relevant student notes and get the $Xpos and $Ypos of the adornment and set them for the note placing the student note over the correct adornment.

Aside: Is there a particular reason for using non-camelcase names for your user attributes? It's not a requirement but my experience is that using a style consistent with TB's makes error-checking your action code significantly easier (given that attribute names are case-sensitive).

Title: Re: Teaching- TBX Seating Chart
Post by Steve Scott on Aug 17th, 2014, 3:29pm

Hi Mark,

Thanks for the reminder about Camel Case.

Here is version #1 of the seating chart app. áI haven't added pictures yet.

Currently, the seating charts look like this:



Here is the TBX if you want to use it or improve it:

https://dl.dropboxusercontent.com/u/916107/web_forum/seating%20charts%20v1.tbx

Steve

Title: Re: Teaching- TBX Seating Chart
Post by Mark Anderson on Aug 17th, 2014, 5:45pm

Late and off the top of my headů

Add attributes $StudentPicture (string) and $AssignedSeat (string). $StudentPicture holds the name of the Student photo in the /fill/ folder of the TB app support. So the second Chris in the class might have photo 'chris2.jpg' and $StudentPicture would hold "chris2".

Agent '1st Period' would have actions (not tested!):

$Fill = $StudentPicture;
$Xpos = $Xpos(path(agent)+"/"+$AssignedSeat);
$Ypos = $Ypos(path(agent)+"/"+$AssignedSeat);




Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.