com.consultoriajava.browneater
Class Brown

java.lang.Object
  extended by com.consultoriajava.browneater.Brown
Direct Known Subclasses:
BrownedImplementation, BrownedSpecification

public class Brown
extends java.lang.Object

Basic class of the package it is mainly used to create, dispatch, eat, resolve and in last term represent the killing of brown's all across the IT world.

The brown starts with the creation of a brown and should end when a BrownEater eats the given Brown.

The next diagram summarizes the life cycle of a brown.

Author:
consultoriajava.com

Field Summary
static int BIG_BROWN
          A brown of enought size to be considered nor standard neither a Mega Brown, for example when a PM decides to use a lot of Java API's only because he fells it must be a great idea no matter the project.
static int MEGA_BROWN
          An special brown, i.e. when someone cuts down the budget of a proyect to 50% of the expected cost.
static int MINI_BROWN
          A small brown, for example when someone codes a class with 40 methods and 30 attributes.
static int NON_LUBRICATED_BROWN
          A non expected brown that takes you undercover too far away from your bottle of vaseline.
static int STANDARD_BROWN
          A standard brown, the kind of brown you expect to receive when you are supposed to leave the office.
static int WORLD_DESTROYER_BROWN
          A Brown rated like the one related with the Extinction of the Dinosaurs.
 
Constructor Summary
Brown(java.lang.String name, int size)
          Build a non-solved brown from a given name and size.
 
Method Summary
 java.lang.String getName()
           
 int getSize()
           
 void hibernate()
          Deprecated. The use of this method is not recomended as the Brown usually comes back stronger and healthier when re-activated.
 boolean isHibernated()
           
 boolean isSolved()
           
 void reBrown()
          Remember when you said "That problem wont happen again, don't document it"?
 void setName(java.lang.String name)
           
 void setSize(int size)
           
 void solve()
          Solving a Brown transforms the evil properties of the Brown, making it harmless.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINI_BROWN

public static final int MINI_BROWN
A small brown, for example when someone codes a class with 40 methods and 30 attributes.

See Also:
Constant Field Values

STANDARD_BROWN

public static final int STANDARD_BROWN
A standard brown, the kind of brown you expect to receive when you are supposed to leave the office.

See Also:
Constant Field Values

BIG_BROWN

public static final int BIG_BROWN
A brown of enought size to be considered nor standard neither a Mega Brown, for example when a PM decides to use a lot of Java API's only because he fells it must be a great idea no matter the project.

See Also:
Constant Field Values

MEGA_BROWN

public static final int MEGA_BROWN
An special brown, i.e. when someone cuts down the budget of a proyect to 50% of the expected cost.

See Also:
Constant Field Values

WORLD_DESTROYER_BROWN

public static final int WORLD_DESTROYER_BROWN
A Brown rated like the one related with the Extinction of the Dinosaurs.

See Also:
Constant Field Values

NON_LUBRICATED_BROWN

public static final int NON_LUBRICATED_BROWN
A non expected brown that takes you undercover too far away from your bottle of vaseline.

See Also:
Constant Field Values
Constructor Detail

Brown

public Brown(java.lang.String name,
             int size)
Build a non-solved brown from a given name and size.

Parameters:
name - Name of the Brown to be created
size - Size of the Brown to be created
Method Detail

solve

public void solve()
Solving a Brown transforms the evil properties of the Brown, making it harmless.


isSolved

public boolean isSolved()

hibernate

public void hibernate()
Deprecated. The use of this method is not recomended as the Brown usually comes back stronger and healthier when re-activated.

Hibernates the Brown making it possible for the brown to come back to life in the near or distant future. For example you can hibernate a Brown by dispatching it.


reBrown

public void reBrown()
Remember when you said "That problem wont happen again, don't document it"? well, smile, you have been Re-Browned!


isHibernated

public boolean isHibernated()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getSize

public int getSize()

setSize

public void setSize(int size)