|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Skills
Represents an employee skill
| Field Summary | |
private java.lang.String |
abbreviation
A skill's abbreviation |
private int |
color
The color associated with the skill (stored as an int) |
private java.lang.String |
name
A name of a skill |
| Constructor Summary | |
Skills(java.lang.String initName,
java.lang.String initAbbreviation,
int initColor)
Construct a skill |
|
| Method Summary | |
java.lang.Object |
clone()
Create a copy of the current object |
java.lang.String |
GetAbbreviation()
Get an abbreviaton for manipulation |
int |
GetColor()
Check what color is assigned to this skill |
java.lang.String |
GetName()
Get a name for manipulation |
void |
SetAbbreviation(java.lang.String newAbbreviation)
Modify abbreviation |
void |
SetColor(int newColor)
Modify the color |
void |
SetName(java.lang.String newName)
Modify the name |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.lang.String name
private java.lang.String abbreviation
private int color
| Constructor Detail |
public Skills(java.lang.String initName,
java.lang.String initAbbreviation,
int initColor)
Preconditions: initColor is within valid range (0-255)
Postconditions: A new skill with the given name, abbreviation, and color is constructed
name - name of skillabbreviation - skill's abbreviationcolor - background color assigned to skill| Method Detail |
public java.lang.String GetName()
Preconditions: (none)
Postconditions: The method will return the name of the skill
public java.lang.String GetAbbreviation()
Preconditions: (none)
Postconditions: The method will return the name of the abbreviation of the skill
public int GetColor()
Preconditions: (none)
Postconditions: The method will return the color that is associated with the skill
public void SetName(java.lang.String newName)
Preconditions: (none)
Postconditions: The name of the skill will be set to the given newName
newName - new name for the skillpublic void SetAbbreviation(java.lang.String newAbbreviation)
Preconditions: (none)
newAbbreviation - new abbreviation for the skillpublic void SetColor(int newColor)
Preconditions: newColor is within range (0-255)
Postconditions: The color associated with the skill will be set to the newColor
newColor - new color for the skillpublic java.lang.Object clone()
Preconditions: (none)
Postconditions: The method will make a copy of the current object, and return that copy
clone in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||