Class Submission

java.lang.Object
  |
  +--Submission

public class Submission
extends java.lang.Object


Constructor Summary
Submission(java.io.File submitXML)
          Constructor method, it parses the Xml file in param param submitXML a XML file well formed as the storysegmentation dtd defines
 
Method Summary
 int getNumberOfVideo(org.w3c.dom.Node run)
          get the number of videos contained in a run
 int getPriority(org.w3c.dom.Node run)
          Get the priority of one run
 org.w3c.dom.Node getRoot()
          Get the Root Node of the XML document
 java.util.Vector getRun()
          Get the all the runs of the current XML file and add tehn as a Node Object in the returned Vector
 java.lang.String getSysId(org.w3c.dom.Node run)
          Get the sysID of one run
 boolean getTyped(org.w3c.dom.Node run)
          it check if one specidic run has result for the classification task
 org.w3c.dom.Node getVideo(int j, org.w3c.dom.Node run)
          this methos gets the the jth video Node of a specific run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Submission

public Submission(java.io.File submitXML)
Constructor method, it parses the Xml file in param param submitXML a XML file well formed as the storysegmentation dtd defines

Method Detail

getRoot

public org.w3c.dom.Node getRoot()
Get the Root Node of the XML document

Returns:
a Node XML object

getTyped

public boolean getTyped(org.w3c.dom.Node run)
it check if one specidic run has result for the classification task

Parameters:
run - Node of the currrent run of the XML file
Returns:
boolean

getSysId

public java.lang.String getSysId(org.w3c.dom.Node run)
Get the sysID of one run

Parameters:
run - Node object which the current run
Returns:
String ie the sysId

getPriority

public int getPriority(org.w3c.dom.Node run)
Get the priority of one run

Parameters:
run - Node object which the current run
Returns:
int ie the priority

getRun

public java.util.Vector getRun()
Get the all the runs of the current XML file and add tehn as a Node Object in the returned Vector

Returns:
Vector of Node object

getVideo

public org.w3c.dom.Node getVideo(int j,
                                 org.w3c.dom.Node run)
this methos gets the the jth video Node of a specific run

Parameters:
run - the current run which is processed
Returns:
Node Object whisch the result for one video

getNumberOfVideo

public int getNumberOfVideo(org.w3c.dom.Node run)
get the number of videos contained in a run

Parameters:
run - the runto process
Returns:
int