FSC
Class FilmStockCalc
java.lang.Object
|
+--FSC.FilmStockCalc
- public class FilmStockCalc
- extends java.lang.Object
FilmStockCalc is the class that defines a cataglog of film stock types and
provides calculations for the amount of film stock needed and the film cost
for a motion picture film project.
- Author:
- Larry Aasen
Constructor Summary |
FilmStockCalc()
This is the default constructor. |
Method Summary |
double |
CalculateCost(FilmStock stock,
int ratio,
int runningTime,
double price,
double discount,
double tax)
This method will calculate the film cost for a motion picture film project. |
int |
CalculateLength(FilmStock stock,
int ratio,
int runningTime)
This method will calculate the amount of film stock required for a motion picture film project. |
java.util.ArrayList |
getFilmStockList()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilmStockCalc
public FilmStockCalc()
- This is the default constructor.
getFilmStockList
public java.util.ArrayList getFilmStockList()
CalculateCost
public double CalculateCost(FilmStock stock,
int ratio,
int runningTime,
double price,
double discount,
double tax)
- This method will calculate the film cost for a motion picture film project.
- Parameters:
stock
- the Film Stock to be used.ratio
- the shooting ratio of the film. If the ratio is 8:1 then
this parameter would be 8.runningTime
- the length of the film in minutes.
camera in feet per minute.price
- the price per foot of film stock in dollars.discount
- the amount of the discount expected as a percentage. If the discount is 10%
this parameter would be 10.0.tax
- the amount of tax expected to pay. If the tax rate is 8.25 % then
this parameter would be 8.25.- Returns:
- The total cost of the film stock.
CalculateLength
public int CalculateLength(FilmStock stock,
int ratio,
int runningTime)
- This method will calculate the amount of film stock required for a motion picture film project.
- Parameters:
stock
- the Film Stock to be used.ratio
- the shooting ratio of the film. If the ratio is 8:1 then
this parameter would be 8.runningTime
- the length of the film in minutes.
camera in feet per minute.- Returns:
- The total length of film stock in feet.