|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.consultoriajava.browneater.Browner
public class Browner
All the browners inherit from this class, objects created from this class has the ability to Brown every single being arround them.
| Constructor Summary | |
|---|---|
Browner()
|
|
| Method Summary | |
|---|---|
Brown |
expandBrown(Brown specification)
Allows for the expansion of a brown. |
Brown |
generateBrown(java.lang.String description,
int size)
This method should be called when the Browner is up to generate a new Brown, the created brown will be returned to the calling method. |
java.lang.String |
getName()
Retrieve the name of a Browner if the browner has been already identified. |
void |
preventBrowning()
This method is usually called when a BrownIdentifier is trying to prevent a Browner from Browning any other people. |
void |
setName(java.lang.String name)
Sets the name of a Browner, setting the name of a Browner is a good way of preventing him from generating new Browns. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Browner()
| Method Detail |
|---|
public Brown generateBrown(java.lang.String description,
int size)
throws BrownerNotTrusted
generateBrown in interface BrownOriginatordescription - The description of the Brown to be generated by the BrownGenerator.size - The size of the Brown beeing created by this Originator
BrownerNotTrusted - This exception is thrown if the Browner
has been already identified, in such cases the API's dosent allows the
browner to create more Browns.public Brown expandBrown(Brown specification)
BrownOriginator
expandBrown in interface BrownOriginatorspecification - The brown to be expanded
public java.lang.String getName()
throws BrownerYetUndercoverException
BrownerYetUndercoverExcepcion
BrownerYetUndercoverExceptionpublic void setName(java.lang.String name)
name - name of the Browner to be identified.
public void preventBrowning()
throws BrownerYetUndercoverException
BrownerYetUndercoverException - Launched when a Browner has not been yet
identified, and so the Browing can not be prevented yet.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||