|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object model.show.Show
public class Show
This class contains a cueSet and other information about the current show. This class also contains the methods to save a show to a file.
TODO: Modify this class so that it can hold a variable number of cuesets at one time.
Constructor Summary | |
---|---|
Show(ArrayList<CueSet> _cueSets,
int _maxChannels)
This constructor will create a Show with the given cueset and maximum number of channels. |
|
Show(int _maxChannels)
This constructor will create a Show with the given number of maxChannels. |
|
Show(String _name,
int _maxChannels,
ArrayList<CueSet> _cueSets)
This constructor will create a Show with the given name, maximum number of channels, and cueset. |
Method Summary | |
---|---|
void |
addCue(ACue cue)
This method will add a cue to the current cueset. |
ACue |
getCue(float cueNumber)
This method returns the cue with the given number. |
String[] |
getCueNames()
This method will return the summary of all the cues in the cueset. |
String |
getFileName()
This method returns the file name and path of the show. |
float |
getHighestCueNumber()
This method returns the highest cue number that currently exists. |
int |
getMaxChannels()
This method returns the maximum number of channels for this show. |
String |
getShowDesc()
This method returns the show's description. |
String |
getShowName()
This method returns the show's name. |
void |
saveShow(String _fileName)
This method will save the show to the location stored in filename. |
void |
setFileName(String _fileName)
This method sets the file name and path for the show. |
void |
setMaxChannels(int _maxChannels)
This method sets the maximum number of channels for this show. |
void |
setShowDesc(String _showDesc)
This method sets the shows description. |
void |
setShowName(String _showName)
This method sets the show's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Show(int _maxChannels)
_maxChannels
- The maximum number of channels for this Show.public Show(ArrayList<CueSet> _cueSets, int _maxChannels)
_cueSets
- The ArrayList of cuesets to use for this show. There must be at least 1 cueset in the arraylist._maxChannels
- The maximum number of channels for this show.public Show(String _name, int _maxChannels, ArrayList<CueSet> _cueSets)
_name
- The show's name._maxChannels
- The maximum number of channels for this show._cueSets
- The ArrayList of cuesets to use for this show. There must be at least 1 cueset in the arraylist.Method Detail |
---|
public String getShowName()
public void setShowName(String _showName)
_showName
- The show's name.public String getShowDesc()
public void setShowDesc(String _showDesc)
_showDesc
- The show's new description.public String getFileName()
public void setFileName(String _fileName)
_fileName
- The new file name and path for the show.public int getMaxChannels()
public void setMaxChannels(int _maxChannels)
_maxChannels
- The maximum number of channels for this show.public void saveShow(String _fileName)
_fileName
- The file name and path to save the file to.public void addCue(ACue cue)
cue
- The cue to add.public String[] getCueNames()
TODO: This method should be renamed to getCueSummaries().
public float getHighestCueNumber()
public ACue getCue(float cueNumber)
cueNumber
- The number of the cue to return.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |