Difference between revisions of "Scoreboard XML"

From PC2wiki
Jump to: navigation, search
m (See Also: added cat)
m (remove ref to XSL)
Line 7: Line 7:
  
 
The the [[Scoreboard XML]] (filename [[results.xml]]) is created in the [[startup directory]].
 
The the [[Scoreboard XML]] (filename [[results.xml]]) is created in the [[startup directory]].
 
== XML Schema for Scoreboard XML ==
 
 
[[Category: stub articles]]
 
(Insert XSD for scoreboard XML)
 
  
 
==Sample XML==
 
==Sample XML==

Revision as of 13:10, 5 September 2016

Scoreboard XML (filename: results.xml) is output from the contest data using the PC² Scoring Algorithm.

Scoreboard XML is generated upon startup of the scoreboard module and contest events/changes in Runs, Problems, or Contest Data. A new Scoreboard HTML will be created based on the Scoreboard XML and PC² XSLT.

File Location

The the Scoreboard XML (filename results.xml) is created in the startup directory.

Sample XML

This is a draft sample of results.xml.

<?xml version="1.0" encoding="UTF-8"?>
<contestStandings>
<standingsHeader currentDate="Wed Jul 30 23:36:58 PDT 2008" generatorId="$Id: DefaultScoringAlgorithm.java 1456 2008-04-02 07:55:37Z boudreat $" groupCount="1" medianProblemsSolved="0" problemCount="1" problemsAttempted="1" siteCount="2" systemName="CSUS Programming Contest System" systemURL="http://pc2.ecs.csus.edu/" systemVersion="9.DEBUG 20080731 build 765" title="Contest" totalAttempts="1" totalSolved="1">
<groupList/>
<colorList>
<colors id="1" siteNum="1">
<problem color="Blue" id="1"/>
</colors>
</colorList>
<problem attempts="1" bestSolutionTime="3" id="1" lastSolutionTime="3" numberSolved="1" title="Sumit"/>
</standingsHeader>
<teamStanding firstSolved="3" index="0" lastSolved="3" points="3" problemsAttempted="1" rank="1" solved="1" teamAlias="team2 (not aliasesd)" teamExternalId="" teamId="2" teamKey="1TEAM2" teamName="team2" teamSiteId="1" totalAttempts="1">
<problemSummaryInfo attempts="1" index="1" isPending="false" isSolved="true" points="3" problemId="Sumit--1524782133810469541" solutionTime="3"/>
</teamStanding>
<teamStanding firstSolved="-1" index="1" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="team1 (not aliasesd)" teamExternalId="" teamId="1" teamKey="1TEAM1" teamName="team1" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="Sumit--1524782133810469541" solutionTime="0"/>
</teamStanding>
<teamStanding firstSolved="-1" index="2" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="team3 (not aliasesd)" teamExternalId="" teamId="3" teamKey="1TEAM3" teamName="team3" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="Sumit--1524782133810469541" solutionTime="0"/>
</teamStanding>
<teamStanding firstSolved="-1" index="3" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="team4 (not aliasesd)" teamExternalId="" teamId="4" teamKey="1TEAM4" teamName="team4" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="Sumit--1524782133810469541" solutionTime="0"/>
</teamStanding>
</contestStandings>

Sample XML Example 2

The following XML is based on Example 2 from the Scoring Algorithm article.


<?xml version="1.0" encoding="UTF-8"?>
<contestStandings>
<standingsHeader currentDate="Sat Nov 21 16:50:06 PST 2009" generatorId="$Id: DefaultScoringAlgorithm.java 1912 2009-10-22 19:15:27Z laned $" groupCount="1" medianProblemsSolved="0" problemCount="4" problemsAttempted="4" siteCount="1" systemName="CSUS Programming Contest System" systemURL="http://pc2.ecs.csus.edu/" systemVersion="9.DEBUG 20091119 build 828" title="Programming Contest" totalAttempts="8" totalSolved="3">
<groupList/>
<colorList/>
<problem attempts="2" id="1" numberSolved="0" title="A"/>
<problem attempts="2" bestSolutionTime="45" id="2" lastSolutionTime="45" numberSolved="1" title="B"/>
<problem attempts="1" bestSolutionTime="215" id="3" lastSolutionTime="215" numberSolved="1" title="C"/>
<problem attempts="3" bestSolutionTime="140" id="4" lastSolutionTime="140" numberSolved="1" title="D"/>
</standingsHeader>
<teamStanding firstSolved="45" index="0" lastSolved="215" points="460" problemsAttempted="4" rank="1" solved="3" teamAlias="Team Five (not aliasesd)" teamExternalId="" teamId="5" teamKey="1TEAM5" teamName="Team Five" teamSiteId="1" totalAttempts="8">
<problemSummaryInfo attempts="2" index="1" isPending="false" isSolved="false" points="0" problemId="A--8585154153182219414" solutionTime="-1"/>
<problemSummaryInfo attempts="2" index="2" isPending="false" isSolved="true" points="65" problemId="B-6948822991899573313" solutionTime="45"/>
<problemSummaryInfo attempts="1" index="3" isPending="false" isSolved="true" points="215" problemId="C--6591258876054926203" solutionTime="215"/>
<problemSummaryInfo attempts="3" index="4" isPending="false" isSolved="true" points="180" problemId="D--6828263567850187730" solutionTime="140"/>
</teamStanding>
<teamStanding firstSolved="-1" index="1" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="Team Four (not aliasesd)" teamExternalId="" teamId="4" teamKey="1TEAM4" teamName="Team Four" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="A--8585154153182219414" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="2" isPending="false" isSolved="false" points="0" problemId="B-6948822991899573313" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="3" isPending="false" isSolved="false" points="0" problemId="C--6591258876054926203" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="4" isPending="false" isSolved="false" points="0" problemId="D--6828263567850187730" solutionTime="0"/>
</teamStanding>
<teamStanding firstSolved="-1" index="2" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="Team One (not aliasesd)" teamExternalId="" teamId="1" teamKey="1TEAM1" teamName="Team One" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="A--8585154153182219414" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="2" isPending="false" isSolved="false" points="0" problemId="B-6948822991899573313" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="3" isPending="false" isSolved="false" points="0" problemId="C--6591258876054926203" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="4" isPending="false" isSolved="false" points="0" problemId="D--6828263567850187730" solutionTime="0"/>
</teamStanding>
<teamStanding firstSolved="-1" index="3" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="Team Three (not aliasesd)" teamExternalId="" teamId="3" teamKey="1TEAM3" teamName="Team Three" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="A--8585154153182219414" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="2" isPending="false" isSolved="false" points="0" problemId="B-6948822991899573313" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="3" isPending="false" isSolved="false" points="0" problemId="C--6591258876054926203" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="4" isPending="false" isSolved="false" points="0" problemId="D--6828263567850187730" solutionTime="0"/>
</teamStanding>
<teamStanding firstSolved="-1" index="4" lastSolved="0" points="0" problemsAttempted="0" rank="2" solved="0" teamAlias="Team Two (not aliasesd)" teamExternalId="" teamId="2" teamKey="1TEAM2" teamName="Team Two" teamSiteId="1" totalAttempts="0">
<problemSummaryInfo attempts="0" index="1" isPending="false" isSolved="false" points="0" problemId="A--8585154153182219414" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="2" isPending="false" isSolved="false" points="0" problemId="B-6948822991899573313" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="3" isPending="false" isSolved="false" points="0" problemId="C--6591258876054926203" solutionTime="0"/>
<problemSummaryInfo attempts="0" index="4" isPending="false" isSolved="false" points="0" problemId="D--6828263567850187730" solutionTime="0"/>
</teamStanding>
</contestStandings>

See Also