|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ComputerOrder>
edu.unm.cs.cs351.f10.tdrl.p2.ComputerOrder
public enum ComputerOrder
An Enum representing the general kinds of computers that could be ordered. This is a coarse-grained representation -- it doesn't drill down to individual components like hard drives, video cards, memory, etc. Instead, it just represents general classes of machines, under the general assumption that one game machine will be tricked out pretty much like another and so on.
| Enum Constant Summary | |
|---|---|
BEIGE_BOX
An ISO-9000 certified, best-practices compliant, paradigm-shifting business unit workflow enabler that will maximize profit margin leveraging potential. |
|
GAME_ENGINE
A machine optimized for the hard-core gamer... |
|
NUMBER_CRUNCHER
Make it go faster. |
|
OLPC
The world will be a better place with one CPU per child. |
|
TRICKED_OUT
Represents a computer with all the bells and whistles. |
|
WEBMAIL_BOX
A box whose only role in life is to run a browser and trickle mail to you batch mode. |
|
| Method Summary | |
|---|---|
double |
getComplexity()
Get the complexity of building a computer of this type. |
double |
getFixedPrice()
Get the fixed price of this unit. |
double |
getSalePrice()
Get the retail price for this unit. |
static ComputerOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ComputerOrder[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ComputerOrder TRICKED_OUT
public static final ComputerOrder GAME_ENGINE
TRICKED_OUT box,
it does have a bajillion-polygon-per-second GPU with embedded whatzitz-thingies
that will make Starcruft II so kewl that it will blow your eyes out. Really.
We promise.
public static final ComputerOrder WEBMAIL_BOX
public static final ComputerOrder BEIGE_BOX
public static final ComputerOrder NUMBER_CRUNCHER
public static final ComputerOrder OLPC
| Method Detail |
|---|
public static final ComputerOrder[] values()
for(ComputerOrder c : ComputerOrder.values())
System.out.println(c);
public static ComputerOrder valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic double getFixedPrice()
public double getSalePrice()
public double getComplexity()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||