blob: ac698e4409ee2164afe1b1524f80c8770c14d69d [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2009 Metascape, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Metascape - Initial API and Implementation
*
* </copyright>
*
*/
package org.metaabm.gen.test;
/**
* Basic Cell Java Implementation.
*
* Generated by metaabm system: May 12, 2009 7:32:33 PM PDT in project: org.metaabm.gen.test (testing) */
import static org.junit.Assert.*;
public class BasicCell {
/**
*
*/
private boolean goal = false;
/**
*
*/
private boolean goal2 = false;
/**
*
*/
private boolean goal3 = false;
/**
* Constructs a new Basic Cell.
*/
public BasicCell() {
createUniqueID();
}
//todo, make this a useful value for evaluating compatibility of different versions of generated classes
private static final long serialVersionUID = 89989998L;
private String uniqueID;
public String getUID() {
return uniqueID;
}
public void createUniqueID() {
uniqueID = org.apache.commons.lang.RandomStringUtils
.randomAlphanumeric(5);
}
/**
* Clones the agent, ensuring that a unique id is assigned.
*/
public Object clone() {
try {
BasicCell clone = (BasicCell) super.clone();
clone.createUniqueID();
return clone;
} catch (Exception e) {
throw new RuntimeException("Unexpected cloning exception: " + e);
}
}
@org.junit.Test
public void dummy() {
assertTrue(true);
}
/**
* Gets the Goal property for Basic Cell.
* @return
*/
public boolean isGoal() {
return goal;
}
/**
* Sets the Goal property for Basic Cell.
*
* @param _goal the new Goal value
*/
public void setGoal(boolean _goal) {
goal = _goal;
}
/**
* Gets the Goal 2 property for Basic Cell.
* @return
*/
public boolean isGoal2() {
return goal2;
}
/**
* Sets the Goal 2 property for Basic Cell.
*
* @param _goal2 the new Goal 2 value
*/
public void setGoal2(boolean _goal2) {
goal2 = _goal2;
}
/**
* Gets the Goal 3 property for Basic Cell.
* @return
*/
public boolean isGoal3() {
return goal3;
}
/**
* Sets the Goal 3 property for Basic Cell.
*
* @param _goal3 the new Goal 3 value
*/
public void setGoal3(boolean _goal3) {
goal3 = _goal3;
}
}