Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Teaching- TBX Seating Chart (Read 2840 times)
Steve Scott
Full Member
*
Offline



Posts: 169

Teaching- TBX Seating Chart
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. . .
Back to top
 
« Last Edit: Aug 17th, 2014, 2:01pm by Steve Scott »  
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Teaching- TBX Seating Chart
Reply #1 - 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).
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Steve Scott
Full Member
*
Offline



Posts: 169

Re: Teaching- TBX Seating Chart
Reply #2 - 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
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Teaching- TBX Seating Chart
Reply #3 - 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);



Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print