Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
#include <tsssx.idl>
Inherits IDispatch.
Public Methods | |
HRESULT | ToString ([out, retval] BSTR *pVal) |
Get a String representation of this object. More... | |
HRESULT | Name ([out, retval] BSTR *pVal) |
Get the Name property of this object as a String. More... | |
HRESULT | ID ([out, retval] long *pVal) |
Get the ID property of this object as a long. More... | |
HRESULT | StartDate ([out, retval] DATE *pVal) |
Get the StartDate property of this object as a DATE. More... | |
HRESULT | EndDate ([out, retval] DATE *pVal) |
Get the EndDate property of this object as a DATE. More... | |
HRESULT | GameDurationMinutes ([out, retval] long *pVal) |
Get the GameDurationMinutes property of this object as an long. More... | |
HRESULT | MasterScheduleID ([out, retval] long *pVal) |
Get the MasterScheduleID property of this object as a long. More... | |
HRESULT | TournamentType ([out, retval] long *pVal) |
Get the TournamentType property of this object as an long. More... | |
HRESULT | Availability ([out, retval] IAvailability **pVal) |
Get the IAvailabiity object associated with this object. More... | |
HRESULT | getMasterSchedule ([out, retval] IMasterSchedule **ppIMasterSchedule) |
Get the IMasterSchedule for this schedule. More... | |
HRESULT | getNumOfVenues ([out, retval] long *plNum) |
Get the number of IVenue's (fields) in use by the tournament. More... | |
HRESULT | getNumOfTeams ([out, retval] long *plNum) |
Get the number of ITeam's in the schedule. More... | |
HRESULT | getNumOfGames ([out, retval] long *plNum) |
Get the number of IGame's in the schedule. More... | |
HRESULT | getNumOfScheduledGames ([out, retval] long *plNum) |
Get the number of scheduled IGame's in the schedule. More... | |
HRESULT | getNumOfUnscheduledGames ([out, retval] long *plNum) |
Get the number of unscheduled IGame's in the schedule. More... | |
HRESULT | getNumOfTeamGames ([in] long lTeamID,[out, retval] long *plNum) |
Get the number of team IGame's in the schedule. More... | |
HRESULT | getNumOfVenueGames ([in] long lVenueID,[out, retval] long *plNum) |
Get the number of venue IGame's in the schedule. More... | |
HRESULT | getNumOfOfficialGames ([in] long lOfficialID,[out, retval] long *plNum) |
Get the number of official IGame's in the schedule. More... | |
HRESULT | getTeams ([out, retval] ITeamCollection **ppICollection) |
Get a collection of all the ITeam's in the schedule. More... | |
HRESULT | getVenues ([out, retval] IVenueCollection **ppICollection) |
Get a collection of all the IVenue's used by the tournament. More... | |
HRESULT | getGames ([out, retval] IGameCollection **ppICollection) |
Get a collection of all the IGame's in the schedule. More... | |
HRESULT | getScheduledGames ([out, retval] IGameCollection **ppICollection) |
Get a collection of all the scheduled IGame's in the schedule. More... | |
HRESULT | getUnscheduledGames ([out, retval] IGameCollection **ppICollection) |
Get a collection of all the unscheduled IGame's in the schedule. More... | |
HRESULT | getTeamGames ([in] long lTeamID,[out, retval] IGameCollection **ppICollection) |
Get a collection of all the team's IGame's in the schedule. More... | |
HRESULT | getVenueGames ([in] long lVenueID,[out, retval] IGameCollection **ppICollection) |
Get a collection of all the venue's IGame's in the schedule. More... | |
HRESULT | getOfficialGames ([in] long lOfficialID,[out, retval] IGameCollection **ppICollection) |
Get a collection of all the official's IGame's in the schedule. More... | |
HRESULT | getOfficials ([out, retval] IOfficialCollection **ppICollection) |
Get a collection of all the IOfficial's for the schedule. More... | |
HRESULT | getNumOfOfficials ([out, retval] long *pVal) |
Get the number of IOfficial's for the schedule. More... | |
HRESULT | getHaveGame ([in] long lID,[out, retval] BOOL *fVal) |
Find out whether or not the specified game belongs to this schedule. More... | |
HRESULT | getStandings ([out, retval] IStandings **ppIStandings) |
The IStandings object for the tournament. More... | |
HRESULT | showBracketImage ([in] long lWidth,[in] long lHeight,[in] BSTR sTagOptions,[out, retval] BSTR *pstrTag) |
Saves the bracket graphic to a GIF file with the specified dimensions and outputs a link to the image. More... |
The ITournamentSchedule object represents a tournament in the project. Use this object to get the games, settings, and other information relavant to the tournament schedule. Do not create this object directly, instead use the getTournamentSchedule() or getTournamentSchedules() methods of the IProject object.
Program ID: TSSSX.TournamentSchedule
Example:
var eSchedules = new Enumerator(Project.getTournamentSchedules()); for (; !eSchedules.atEnd(); eSchedules.moveNext()) { oSchedule = eSchedules.item(); // do something with the ITournamentSchedule object Response.WriteLine("There are " + oSchedule.getNumOfGames() + " games in the practice schedule '" + oSchedule.Name + "'"); }
|
Get the IAvailabiity object associated with this object. Example: if (obj.Availability.AlwaysAvailable) { Response.WriteLine("The object " + obj.Name + " is always available for game play."); } |
|
Get the EndDate property of this object as a DATE. Example: var end = new Date(schedule.EndDate); Response.Write(end); |
|
Get the GameDurationMinutes property of this object as an long. The GameDurationMinutes property returns the game duration in minutes. If a game is 2 hours, the number of minutes returned would be 120.
|
|
Get the ID property of this object as a long. Example: var iID = obj.ID; |
|
Get the MasterScheduleID property of this object as a long.
var masterschedule = Project.getMasterSchedule(schedule.MasterScheduleID); if (masterschedule != null) { // do something with the masterschedule } |
|
Get the Name property of this object as a String. Example: var sName = obj.Name; |
|
Get the StartDate property of this object as a DATE. Example: var start = new Date(schedule.StartDate); Response.Write(start); |
|
Get a String representation of this object. Example: var sImplicit = "The object '" + obj + "' ToString property was called implicitly."; var sDirect = "The object '" + obj.ToString + "' ToString property was called directly."; |
|
Get the TournamentType property of this object as an long. There are currently four types of tournaments supported as listed below.
var sType = "unknown"; switch (tournament.TournamentType) { case 0: // single elim sType = "Single Elimination"; break; case 1: // double elim sType = "Double Elimination"; break; case 2: // consolation sType = "Consolation"; break; case 3: // firstround consolation sType = "Consolation First Round Losers"; break; } Response.WriteLine("This is a " + sType + " tournament."); |
|
Get a collection of all the IGame's in the schedule.
var obj; var eItems = new Enumerator(schedule.getGames()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Find out whether or not the specified game belongs to this schedule.
var game; var eItems = new Enumerator(Project.getGames()); for (; !eItems.atEnd(); eItems.moveNext()) { game = eItems.item(); if (schedule.getHaveGame(game.ID) == true) { Response.WriteLine("The schedule '" + schedule + "' has the game '" + game + "'"); } }
|
|
Get the IMasterSchedule for this schedule.
var schedule = schedule.getMasterSchedule(); if (schedule != null) { // do something with the league }
|
|
Get the number of IGame's in the schedule.
var iNum = schedule.getNumOfGames(); |
|
Get the number of official IGame's in the schedule.
var iNum = schedule.getNumOfOfficialGames(official.ID); |
|
Get the number of IOfficial's for the schedule.
var iNum = schedule.getNumOfOfficials(); |
|
Get the number of scheduled IGame's in the schedule.
var iNum = schedule.getNumOfScheduledGames(); |
|
Get the number of team IGame's in the schedule.
var iNum = schedule.getNumOfTeamGames(team.ID); |
|
Get the number of ITeam's in the schedule.
var iNum = schedule.getNumOfTeams(); |
|
Get the number of unscheduled IGame's in the schedule.
var iNum = schedule.getNumOfUnscheduledGames(); |
|
Get the number of venue IGame's in the schedule.
var iNum = schedule.getNumOfVenueGames(venue.ID); |
|
Get the number of IVenue's (fields) in use by the tournament.
var iNum = tournamentschedule.getNumOfVenues(); |
|
Get a collection of all the official's IGame's in the schedule.
var oGame; var eGames = new Enumerator(schedule.getOfficialGames(official.ID)); for (; !eGames.atEnd(); eGames.moveNext()) { oGame = eGames.item(); // do something with the IGame object }
|
|
Get a collection of all the IOfficial's for the schedule.
var obj; var eItems = new Enumerator(schedule.getOfficials()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a collection of all the scheduled IGame's in the schedule.
var obj; var eItems = new Enumerator(schedule.getScheduledGames()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
The IStandings object for the tournament.
var oStandings = tournament.getStandings(); var iWins = oStandings.getWins(team.ID);
|
|
Get a collection of all the team's IGame's in the schedule.
var oGame; var eGames = new Enumerator(schedule.getTeamGames(team.ID)); for (; !eGames.atEnd(); eGames.moveNext()) { oGame = eGames.item(); // do something with the IGame object }
|
|
Get a collection of all the ITeam's in the schedule.
var obj; var eItems = new Enumerator(schedule.getTeams()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a collection of all the unscheduled IGame's in the schedule.
var obj; var eItems = new Enumerator(schedule.getUnscheduledGames()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a collection of all the venue's IGame's in the schedule.
var oGame; var eGames = new Enumerator(schedule.getVenueGames(venue.ID)); for (; !eGames.atEnd(); eGames.moveNext()) { oGame = eGames.item(); // do something with the IGame object }
|
|
Get a collection of all the IVenue's used by the tournament.
var obj; var eItems = new Enumerator(tournament.getVenues()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Saves the bracket graphic to a GIF file with the specified dimensions and outputs a link to the image. This method saves the tournament bracket image to a GIF file with the specified maximum width and height and constructs a HTML <img> tag with the requested options which references the saved image file.
Response.WriteLine( tournament.showBracketImage(600, 600, "border='0' align='center'"); Result: <img src="311001-600-600-tourny.gif" border='0' aligh='center' > |
Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
Copyright © 1996-2007, Galactix Software. All rights reserved.
Questions? Comments? Send email to support@galactix.com