|
|||||||||
| Home >> All >> com >> textflex >> [ txtfl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.textflex.txtfl
Class DrivePlay

java.lang.Objectcom.textflex.txtfl.DrivePlay
- All Implemented Interfaces:
- java.io.Serializable
- public class DrivePlay
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
A record of the statistics for a given play during the given drive. The record contains values such as the time, team scores, play call, and yardage. Coaches can refer back to these records to keep a tally on team performance and to track individual players' statistics.
| Field Summary | |
private java.lang.String |
defense
|
private java.lang.String |
dfPlay
|
private java.lang.String |
dfPlayType
|
private int |
dfScore
|
private int |
down
|
private boolean |
nextPlayNewDrive
|
private java.lang.String |
offense
|
private java.lang.String |
ofPlay
|
private java.lang.String |
ofPlayType
|
private int |
ofScore
|
private PrimaryPlayStat |
primPlayStat
|
private int |
quarter
|
private java.lang.String |
result
|
private int |
startYdsToGo
|
private PlayStat[] |
supplPlayStats
|
private int |
supplPlayStatsIndex
|
private int |
time
|
private java.lang.String |
yardline
|
| Constructor Summary | |
DrivePlay(java.lang.String aOffense,
java.lang.String aDefense,
int aDown,
int aStartYdsToGo,
java.lang.String aYardline,
int aQuarter,
int aTime,
int aOfScore,
int aDfScore)
|
|
| Method Summary | |
void |
addPrimPlayStat(java.lang.String playType,
java.lang.String deliverer,
int deliveryDist,
java.lang.String recipient,
int recipientDist,
java.lang.String defender)
Adds a primary play stat. |
void |
addSupplPlayStat(java.lang.String playType,
java.lang.String recipient,
int recipientDist,
java.lang.String defender)
Adds a supplementary play stat. |
boolean |
getNextPlayNewDrive()
Gets the flag for whether the next play should be part of a new drive. |
java.lang.String |
getResult()
Gets the result. |
java.lang.String |
getSummary()
Parses together all the summary statements, consisting of the game-time stats, play calls, and play events. |
java.lang.String |
getSummaryGameStats()
Gets a summary of the game-time statistics in prose form, including scores and down information. |
java.lang.String |
getSummaryPlay()
Gets a summary of the play's events, including key players and distances. |
java.lang.String |
getSummaryPlayChoices()
Gets a summary of the teams' play choices in prose form. |
void |
setPlays(java.lang.String aOfPlayType,
java.lang.String aOfPlay,
java.lang.String aDfPlayType,
java.lang.String aDfPlay)
Sets the play call and category. |
void |
setResult(java.lang.String aResult)
Sets the result of the play, such as "complete" for completed passes or "no good" for missed field goals. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
time
private int time
quarter
private int quarter
offense
private java.lang.String offense
defense
private java.lang.String defense
yardline
private java.lang.String yardline
down
private int down
startYdsToGo
private int startYdsToGo
ofPlayType
private java.lang.String ofPlayType
dfPlayType
private java.lang.String dfPlayType
ofPlay
private java.lang.String ofPlay
dfPlay
private java.lang.String dfPlay
ofScore
private int ofScore
dfScore
private int dfScore
result
private java.lang.String result
primPlayStat
private PrimaryPlayStat primPlayStat
supplPlayStats
private PlayStat[] supplPlayStats
supplPlayStatsIndex
private int supplPlayStatsIndex
nextPlayNewDrive
private boolean nextPlayNewDrive
| Constructor Detail |
DrivePlay
public DrivePlay(java.lang.String aOffense, java.lang.String aDefense, int aDown, int aStartYdsToGo, java.lang.String aYardline, int aQuarter, int aTime, int aOfScore, int aDfScore)
| Method Detail |
setPlays
public void setPlays(java.lang.String aOfPlayType, java.lang.String aOfPlay, java.lang.String aDfPlayType, java.lang.String aDfPlay)
- Sets the play call and category.
addPrimPlayStat
public void addPrimPlayStat(java.lang.String playType, java.lang.String deliverer, int deliveryDist, java.lang.String recipient, int recipientDist, java.lang.String defender)
- Adds a primary play stat.
Primary play stats consist of the parameters relevant to every
play, such as the players who start with, end with, or defend
against the ball as well as distance information.
addSupplPlayStat
public void addSupplPlayStat(java.lang.String playType, java.lang.String recipient, int recipientDist, java.lang.String defender)
- Adds a supplementary play stat.
An unlimited number of supplementary play stats can be added,
each one referring to a separate component on top of the primary
play stats for each play. For example, interceptions warrant
records of who caught the ball, how far the player carried it,
and who eventually tackled him.
setResult
public void setResult(java.lang.String aResult)
- Sets the result of the play, such as "complete" for completed
passes or "no good" for missed field goals.
getResult
public java.lang.String getResult()
- Gets the result.
getNextPlayNewDrive
public boolean getNextPlayNewDrive()
- Gets the flag for whether the next play should be part
of a new drive.
getSummaryGameStats
public java.lang.String getSummaryGameStats()
- Gets a summary of the game-time statistics in prose form,
including scores and down information.
getSummaryPlayChoices
public java.lang.String getSummaryPlayChoices()
- Gets a summary of the teams' play choices in prose form.
getSummaryPlay
public java.lang.String getSummaryPlay()
- Gets a summary of the play's events, including key players
and distances.
getSummary
public java.lang.String getSummary()
- Parses together all the summary statements, consisting of
the game-time stats, play calls, and play events.
|
|||||||||
| Home >> All >> com >> textflex >> [ txtfl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.textflex.txtfl.DrivePlay