Skip to main content

Government (as it would be expressed in Java)

Posted by n_alex on November 6, 2003 at 3:54 PM PST
package nature.law.society.human;

/**
* Obviously, the more complex this class becomes,
* the less efficient it becomes, so I intentionally
* left it simple, but you can feel free to extend it if
* you wish.  Be creative!
*
* @author N. Alex Rupp
*/
public class Government extends Monopoly {

    public Justice dispenseRetributiveJustice(
        Price monopolisticPrice) {

        if(monopolisticPrice.isPaid()) {
            // the poll checking is totally optional
            if(Beaurocrat.checkPolls().equals("favorable")) {
                return CoerciveAuthority.
                    exactRetributiveJustice();
            }
        }
        return null;  // TODO: someone log this please
    }
}
Related Topics >>