Package org.emrick.project
Class Performer
java.lang.Object
org.emrick.project.Performer
- All Implemented Interfaces:
Comparable<Performer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList<Coordinate>private intprivate intprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLEDStrip(int ledStrip) voidaddSet(Coordinate coordinate) intCompare sections and labels to determine the relative ordering of two performers as they would appear in the CSV file.booleanintgetLabel()intintinthashCode()private booleanisGDS()booleanvoidloadCoordinates(ArrayList<Coordinate> coordinates) voidsetCoordinates(ArrayList<Coordinate> coordinates) voidsetLabel(int label) voidsetLedStrips(ArrayList<Integer> ledStrips) (package private) voidsetPerformerID(int performerID) voidtoString()
-
Field Details
-
currentLocation
-
symbol
-
label
private int label -
coordinates
-
performerID
private int performerID -
ledStrips
-
-
Constructor Details
-
Performer
public Performer() -
Performer
-
-
Method Details
-
getLedStrips
-
setLedStrips
-
addLEDStrip
public void addLEDStrip(int ledStrip) -
getPerformerID
public int getPerformerID() -
setPerformerID
void setPerformerID(int performerID) -
loadCoordinates
-
getCoordinates
-
setCoordinates
-
getCoordinateFromSet
-
addSet
-
equals
-
hashCode
public int hashCode() -
toString
-
getIdentifier
-
getSymbol
-
setSymbol
-
getLabel
public int getLabel() -
setLabel
public void setLabel(int label) -
isLeftOnly
public boolean isLeftOnly() -
isGDS
private boolean isGDS() -
getLEDCount
public int getLEDCount() -
compareTo
Compare sections and labels to determine the relative ordering of two performers as they would appear in the CSV file. See Symbol.java for section ordering.- Specified by:
compareToin interfaceComparable<Performer>
-