org.jscience.sports
Class Match

java.lang.Object
  extended by org.jscience.sports.Match

public class Match
extends java.lang.Object

A class representing one meeting in a sport competition.


Constructor Summary
Match(Sport sport, Category category, java.util.Date date, Individual[] opponents)
          Creates a new Match object.
Match(Sport sport, Category category, java.util.Date date, Team[] opponents)
          Creates a new Match object.
 
Method Summary
 Category getCategory()
          DOCUMENT ME!
 java.util.Date getDate()
          DOCUMENT ME!
 java.lang.Object[] getOpponents()
          DOCUMENT ME!
 double[] getScores()
          DOCUMENT ME!
 Sport getSport()
          DOCUMENT ME!
 boolean isFinished()
          DOCUMENT ME!
 boolean isTeam()
          DOCUMENT ME!
 void setScore(double[] scores)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Match

public Match(Sport sport,
             Category category,
             java.util.Date date,
             Individual[] opponents)
Creates a new Match object.

Parameters:
sport - DOCUMENT ME!
category - DOCUMENT ME!
date - DOCUMENT ME!
opponents - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Match

public Match(Sport sport,
             Category category,
             java.util.Date date,
             Team[] opponents)
Creates a new Match object.

Parameters:
sport - DOCUMENT ME!
category - DOCUMENT ME!
date - DOCUMENT ME!
opponents - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getSport

public Sport getSport()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCategory

public Category getCategory()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDate

public java.util.Date getDate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isTeam

public boolean isTeam()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOpponents

public java.lang.Object[] getOpponents()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isFinished

public boolean isFinished()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getScores

public double[] getScores()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setScore

public void setScore(double[] scores)
DOCUMENT ME!

Parameters:
scores - DOCUMENT ME!