public class Axon { private Nucleus nucleus; public static final int EXCITATORY = 0; public static final int INHIBITORY = 1; private int type; private int strength; public Axon( Nucleus s , int type, int st ) { nucleus = s; this.type = type; strength = st; } public void fire() { if (type == EXCITATORY) nucleus.excite(strength); else if (type == INHIBITORY) nucleus.inhibit(strength); } }