// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   BooleanGene.java

package drm.genetics.simple;

import drm.genetics.Gene;
import drm.genetics.Inversible;

public class BooleanGene
	implements Gene, Inversible
{

	protected boolean value;

	public BooleanGene()
	{
		value = true;
	}

	public BooleanGene(boolean value)
	{
		this.value = true;
		set(value);
	}

	public void set(boolean value)
	{
		this.value = value;
	}

	public boolean get()
	{
		return value;
	}

	public void inverse()
	{
		value = !value;
	}

	public String toString()
	{
		return String.valueOf(value);
	}
}
