From e56af4fb60588a5fd3b19bd9d743c84edf6790a3 Mon Sep 17 00:00:00 2001 From: Michael de Paly Date: Fri, 16 Oct 2009 15:56:49 +0000 Subject: [PATCH] provided protected getters and setter for parentlogging to allow derived classes access to the logging features --- .../go/individuals/AbstractEAIndividual.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/eva2/server/go/individuals/AbstractEAIndividual.java b/src/eva2/server/go/individuals/AbstractEAIndividual.java index a3753f51..42d50b0c 100644 --- a/src/eva2/server/go/individuals/AbstractEAIndividual.java +++ b/src/eva2/server/go/individuals/AbstractEAIndividual.java @@ -42,7 +42,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java. private static long m_IDcounter = 0; // private int logParentLen = 10; private boolean logParents = false; - // heritage is to contain a list of all parents of the individual + // heritage is to contain a list of all parents of the individual private Long[] parentIDs = null; transient private AbstractEAIndividual[] parentTree = null; @@ -984,6 +984,23 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java. public double[] getDoublePosition() { return AbstractEAIndividual.getDoublePosition(this); } + + /** + * @return true if parent history logging is activated + * + */ + protected boolean isLogParents() { + return logParents; + } + + /** This method allows you to toggle parent history logging + * @param logParents true if logging should be activated + */ + protected void setLogParents(boolean logParents) { + this.logParents = logParents; + } + + /********************************************************************************************************************** * Implementing the Individual Interface */