repo_name stringlengths 7 104 | file_path stringlengths 13 198 | context stringlengths 67 7.15k | import_statement stringlengths 16 4.43k | code stringlengths 40 6.98k | prompt stringlengths 227 8.27k | next_line stringlengths 8 795 |
|---|---|---|---|---|---|---|
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Dynamic.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
| import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType; | package it.uniroma1.dis.wsngroup.gexf4j.core.dynamic;
public interface Dynamic<T extends Object> {
/**
* Checks if the element has a start date
* @return true if the element has a start date
*/
boolean hasStartDate();
/**
* Clears the start date of the element
* @return the current element
*/
T cle... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Dynamic.java
import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType;
package it.uniroma1.dis.wsngroup.gexf4j.core.... | T setStartIntervalType(IntervalType startIntervalType); |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/writer/AttributesEntityWriter.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/Attribute.java
// public interface Attribute {
//
// /**
// * Returns the ID of the Attribute
// * @return the ID as String
// */
// String getId();
//
// /**
// * Returns the title of the Attribute
// * @return the title as String
// */... | import it.uniroma1.dis.wsngroup.gexf4j.core.data.Attribute;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.AttributeList;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter; | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.writer;
public class AttributesEntityWriter extends DynamicEntityWriter<AttributeList> {
private static final String ENTITY = "attributes";
private static final String ATTRIB_CLASS = "class";
private static final String ATTRIB_MODE = "mode";
public AttributesE... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/Attribute.java
// public interface Attribute {
//
// /**
// * Returns the ID of the Attribute
// * @return the ID as String
// */
// String getId();
//
// /**
// * Returns the title of the Attribute
// * @return the title as String
// */... | for (Attribute attrib : entity) { |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/data/AttributeListImpl.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4... | import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;
import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType;
import it.uniroma1.dis.wsngroup.gexf4j.core.Mode;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.Attribute;
import it.uniroma1.dis.... | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.data;
/**
* AttributeListImpl class is an implementation of the AttributeList interface.
*
*/
public class AttributeListImpl extends ArrayList<Attribute> implements AttributeList {
private static final long serialVersionUID = 8240096318919688740L;
private Obj... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4... | private AttributeClass attrClass = AttributeClass.NODE; |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/data/AttributeListImpl.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4... | import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;
import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType;
import it.uniroma1.dis.wsngroup.gexf4j.core.Mode;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.Attribute;
import it.uniroma1.dis.... | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.data;
/**
* AttributeListImpl class is an implementation of the AttributeList interface.
*
*/
public class AttributeListImpl extends ArrayList<Attribute> implements AttributeList {
private static final long serialVersionUID = 8240096318919688740L;
private Obj... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4... | private Mode mode = Mode.STATIC; |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/data/AttributeListImpl.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4... | import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;
import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType;
import it.uniroma1.dis.wsngroup.gexf4j.core.Mode;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.Attribute;
import it.uniroma1.dis.... | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.data;
/**
* AttributeListImpl class is an implementation of the AttributeList interface.
*
*/
public class AttributeListImpl extends ArrayList<Attribute> implements AttributeList {
private static final long serialVersionUID = 8240096318919688740L;
private Obj... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4... | private IntervalType startIntervalType = IntervalType.CLOSE; |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/SpellableDatumBase.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/SpellableDatum.java
// public interface SpellableDatum<T extends Object> extends Spellable<T>, Datum {
//
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/AttributeValueList.java
// public interface AttributeValueList extends List<Att... | import it.uniroma1.dis.wsngroup.gexf4j.core.SpellableDatum;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.AttributeValueList;
import it.uniroma1.dis.wsngroup.gexf4j.core.impl.data.AttributeValueListImpl;
import it.uniroma1.dis.wsngroup.gexf4j.core.impl.dynamic.SpellableBase; | package it.uniroma1.dis.wsngroup.gexf4j.core.impl;
public abstract class SpellableDatumBase<T extends Object> extends SpellableBase<T> implements SpellableDatum<T> {
private AttributeValueList attributes = null;
public SpellableDatumBase() { | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/SpellableDatum.java
// public interface SpellableDatum<T extends Object> extends Spellable<T>, Datum {
//
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/AttributeValueList.java
// public interface AttributeValueList extends List<Att... | attributes = new AttributeValueListImpl(); |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/data/AttributeValueListImpl.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/Attribute.java
// public interface Attribute {
//
// /**
// * Returns the ID of the Attribute
// * @return the ID as String
// */
// String getId();
//
// /**
// * Returns the title of the Attribute
// * @return the title as String
// */... | import static com.google.common.base.Preconditions.checkArgument;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.Attribute;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.AttributeValue;
import it.uniroma1.dis.wsngroup.gexf4j.core.data.AttributeValueList;
import java.util.ArrayList; | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.data;
/**
* AttributeValueListImpl class is an implementation of the AttributeValueList interface.
*
*/
public class AttributeValueListImpl extends ArrayList<AttributeValue> implements AttributeValueList {
private static final long serialVersionUID = 77304750010... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/Attribute.java
// public interface Attribute {
//
// /**
// * Returns the ID of the Attribute
// * @return the ID as String
// */
// String getId();
//
// /**
// * Returns the title of the Attribute
// * @return the title as String
// */... | public AttributeValueList addValue(Attribute attribute, String value) { |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Edge.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/viz/Color.java
// public interface Color {
//
// /**
// * Returns the value of the red color
// * @return an int number indicating the value of the red color
// */
// int getR();
//
// /**
// * Sets the value for the red color
// * @param r an ... | import it.uniroma1.dis.wsngroup.gexf4j.core.viz.Color;
import it.uniroma1.dis.wsngroup.gexf4j.core.viz.EdgeShape; | package it.uniroma1.dis.wsngroup.gexf4j.core;
/**
* Interface for the Edge element.
*
*/
public interface Edge extends SpellableDatum<Edge> {
/**
* Returns the ID of the Edge
* @return the Edge ID as String
*/
String getId();
/**
* Returns the source of the Edge
* @return the source node
*/
Node... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/viz/Color.java
// public interface Color {
//
// /**
// * Returns the value of the red color
// * @return an int number indicating the value of the red color
// */
// int getR();
//
// /**
// * Sets the value for the red color
// * @param r an ... | Color getColor(); |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Edge.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/viz/Color.java
// public interface Color {
//
// /**
// * Returns the value of the red color
// * @return an int number indicating the value of the red color
// */
// int getR();
//
// /**
// * Sets the value for the red color
// * @param r an ... | import it.uniroma1.dis.wsngroup.gexf4j.core.viz.Color;
import it.uniroma1.dis.wsngroup.gexf4j.core.viz.EdgeShape; | package it.uniroma1.dis.wsngroup.gexf4j.core;
/**
* Interface for the Edge element.
*
*/
public interface Edge extends SpellableDatum<Edge> {
/**
* Returns the ID of the Edge
* @return the Edge ID as String
*/
String getId();
/**
* Returns the source of the Edge
* @return the source node
*/
Node... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/viz/Color.java
// public interface Color {
//
// /**
// * Returns the value of the red color
// * @return an int number indicating the value of the red color
// */
// int getR();
//
// /**
// * Sets the value for the red color
// * @param r an ... | EdgeShape getShape(); |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/writer/EdgeEntityWriter.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Edge.java
// public interface Edge extends SpellableDatum<Edge> {
//
// /**
// * Returns the ID of the Edge
// * @return the Edge ID as String
// */
// String getId();
//
// /**
// * Returns the source of the Edge
// * @return the source node
/... | import it.uniroma1.dis.wsngroup.gexf4j.core.Edge;
import it.uniroma1.dis.wsngroup.gexf4j.core.viz.EdgeShape;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter; | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.writer;
public class EdgeEntityWriter extends SpellableDatumEntityWriter<Edge> {
private static final String ENTITY = "edge";
private static final String ATTRIB_ID = "id";
private static final String ATTRIB_LABEL = "label";
private static final String ATTRIB_SOU... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Edge.java
// public interface Edge extends SpellableDatum<Edge> {
//
// /**
// * Returns the ID of the Edge
// * @return the Edge ID as String
// */
// String getId();
//
// /**
// * Returns the source of the Edge
// * @return the source node
/... | if (entity.getShape() != EdgeShape.NOTSET) { |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/AttributeList.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Dynamic.java
// public interface Dynamic<T extends Object> {
//
// /**
// * Checks if the element has a start date
// ... | import it.uniroma1.dis.wsngroup.gexf4j.core.Mode;
import it.uniroma1.dis.wsngroup.gexf4j.core.dynamic.Dynamic;
import java.util.List; | package it.uniroma1.dis.wsngroup.gexf4j.core.data;
/**
* Interface for the AttributeList
*
*/
public interface AttributeList extends List<Attribute>, Dynamic<AttributeList> {
/**
* Returns the AttributeClass for the list of Attributes
* @return an AttributeClass enum for that list
*/
AttributeClass getA... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Mode.java
// public enum Mode {
//
// STATIC,
// DYNAMIC,
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Dynamic.java
// public interface Dynamic<T extends Object> {
//
// /**
// * Checks if the element has a start date
// ... | Mode getMode(); |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/SpellImpl.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Spell.java
// public interface Spell extends Dynamic<Spell> {
//
// }
| import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;
import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType;
import it.uniroma1.dis.wsngroup.gexf4j.core.dynamic.Spell; | package it.uniroma1.dis.wsngroup.gexf4j.core.impl;
/**
* SpellImpl class is an implementation of the Spell interface.
*
*/
public class SpellImpl implements Spell {
private Object startDate = null;
private Object endDate = null; | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Spell.java
// public interface Spell extends Dynamic<Spell> {
//
// }
// Path: src/main/java/it/uniroma1/dis/wsn... | private IntervalType startIntervalType = IntervalType.CLOSE; |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/Graph.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/AttributeList.java
// public interface AttributeList extends List<Attribute>, Dynamic<AttributeList> {
//
// /**
// * Returns the AttributeClass for the list of Attributes
// * @return an AttributeClass enum for that list
// */
// AttributeClass... | import it.uniroma1.dis.wsngroup.gexf4j.core.data.AttributeList;
import it.uniroma1.dis.wsngroup.gexf4j.core.dynamic.Dynamic;
import java.util.List; | package it.uniroma1.dis.wsngroup.gexf4j.core;
/**
* Interface for the Graph element.
*
*/
public interface Graph extends Dynamic<Graph>, HasNodes {
/**
* Returns the default type of the Edges
* @return an EdgeType enum for the Graph
*/
EdgeType getDefaultEdgeType();
/**
* Sets the default type of th... | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/data/AttributeList.java
// public interface AttributeList extends List<Attribute>, Dynamic<AttributeList> {
//
// /**
// * Returns the AttributeClass for the list of Attributes
// * @return an AttributeClass enum for that list
// */
// AttributeClass... | List<AttributeList> getAttributeLists(); |
francesco-ficarola/gexf4j | src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/impl/dynamic/DynamicBase.java | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Dynamic.java
// public interface Dynamic<T extends Object> {
//
// /**
// * Checks if the element has a start d... | import static com.google.common.base.Preconditions.*;
import it.uniroma1.dis.wsngroup.gexf4j.core.IntervalType;
import it.uniroma1.dis.wsngroup.gexf4j.core.dynamic.Dynamic; | package it.uniroma1.dis.wsngroup.gexf4j.core.impl.dynamic;
public abstract class DynamicBase<T extends Object> implements Dynamic<T> {
private Object endDate = null;
private Object startDate = null; | // Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/IntervalType.java
// public enum IntervalType {
// OPEN,
// CLOSE
// }
//
// Path: src/main/java/it/uniroma1/dis/wsngroup/gexf4j/core/dynamic/Dynamic.java
// public interface Dynamic<T extends Object> {
//
// /**
// * Checks if the element has a start d... | private IntervalType startIntervalType = IntervalType.CLOSE; |
google/archive-patcher | applier/src/main/java/com/google/archivepatcher/applier/bsdiff/BsPatch.java | // Path: applier/src/main/java/com/google/archivepatcher/applier/PatchFormatException.java
// @SuppressWarnings("serial")
// public class PatchFormatException extends IOException {
//
// /**
// * Constructs a new exception with the specified message.
// * @param message the message
// */
// public PatchFo... | import com.google.archivepatcher.applier.PatchFormatException;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.util.logging.Level;
import java.util.logging.Logger; | // Copyright 2016 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Path: applier/src/main/java/com/google/archivepatcher/applier/PatchFormatException.java
// @SuppressWarnings("serial")
// public class PatchFormatException extends IOException {
//
// /**
// * Constructs a new exception with the specified message.
// * @param message the message
// */
// public PatchFo... | throws PatchFormatException, IOException { |
google/archive-patcher | applier/src/main/java/com/google/archivepatcher/applier/gdiff/Gdiff.java | // Path: applier/src/main/java/com/google/archivepatcher/applier/PatchFormatException.java
// @SuppressWarnings("serial")
// public class PatchFormatException extends IOException {
//
// /**
// * Constructs a new exception with the specified message.
// * @param message the message
// */
// public PatchFo... | import com.google.archivepatcher.applier.PatchFormatException;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.RandomAccessFile; | // Copyright 2016 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Path: applier/src/main/java/com/google/archivepatcher/applier/PatchFormatException.java
// @SuppressWarnings("serial")
// public class PatchFormatException extends IOException {
//
// /**
// * Constructs a new exception with the specified message.
// * @param message the message
// */
// public PatchFo... | throw new PatchFormatException("Unexpected magic=" + String.format("%x", magic)); |
google/archive-patcher | explainer/src/test/java/com/google/archivepatcher/explainer/PatchExplanationTest.java | // Path: generator/src/main/java/com/google/archivepatcher/generator/ByteArrayHolder.java
// public class ByteArrayHolder {
// /**
// * The backing byte array.
// */
// private final byte[] data;
//
// /**
// * Construct a new wrapper around the specified bytes.
// * @param data the byte array
// ... | import com.google.archivepatcher.generator.ByteArrayHolder;
import com.google.archivepatcher.generator.RecommendationReason;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.... | Arrays.asList(
EXPLANATION_1_NEW,
EXPLANATION_2_NEW,
EXPLANATION_3_CHANGED_NOT_FREE,
EXPLANATION_4_CHANGED_NOT_FREE,
EXPLANATION_5_CHANGED_BUT_FREE,
EXPLANATION_6_UNCHANGED));
private static final List<EntryExplanation> EXP... | // Path: generator/src/main/java/com/google/archivepatcher/generator/ByteArrayHolder.java
// public class ByteArrayHolder {
// /**
// * The backing byte array.
// */
// private final byte[] data;
//
// /**
// * Construct a new wrapper around the specified bytes.
// * @param data the byte array
// ... | ByteArrayHolder pathHolder = new ByteArrayHolder(path.getBytes("UTF-8")); |
ghjansen/cas | cas-unidimensional/src/test/java/com/ghjansen/cas/unidimensional/ca/UnidimensionalCombinationTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | public void unidimensionalCombinationConstructor() throws InvalidStateException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidStateException.java
// public class InvalidStateException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -7435119307025647318L;
//
// }
| import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidStateException.java
// public class InvalidStateException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -7435119307025647318L;
//
// }
// Path: cas-core/src/ma... | protected Combination(A reference, A... neighbors) throws InvalidStateException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/CombinationTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidStateException.java
// public class InvalidStateException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -7435119307025647318L;
//
// }
| import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidStateException.java
// public class InvalidStateException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -7435119307025647318L;
//
// }
// Path: cas-core/src/te... | public void dimensionalCombinationConstructor() throws InvalidStateException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/physics/UnidimensionalCell.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidStateException.java
// public class InvalidStateException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -7435119307025647318L;
//
// }
//
// Path: cas-core/src/... | import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.physics.Cell;
import com.ghjansen.cas.unidimensional.ca.UnidimensionalState;
import com.ghjansen.cas.unidimensional.ca.UnidimensionalTransition; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidStateException.java
// public class InvalidStateException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -7435119307025647318L;
//
// }
//
// Path: cas-core/src/... | public UnidimensionalCell(UnidimensionalState state) throws InvalidStateException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/physics/UnidimensionalTime.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.physics.Time; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | throws CloneNotSupportedException, InvalidAbsoluteTimeLimitException, InvalidRelativeTimeLimitException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/physics/UnidimensionalTime.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.physics.Time; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | throws CloneNotSupportedException, InvalidAbsoluteTimeLimitException, InvalidRelativeTimeLimitException { |
ghjansen/cas | cas-unidimensional/src/test/java/com/ghjansen/cas/unidimensional/physics/UnidimensionalTimeTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.exception.TimeLimitReachedException;
import com.ghjansen.cas.core.physics.Time; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | throws CloneNotSupportedException, InvalidAbsoluteTimeLimitException, InvalidRelativeTimeLimitException { |
ghjansen/cas | cas-unidimensional/src/test/java/com/ghjansen/cas/unidimensional/physics/UnidimensionalTimeTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.exception.TimeLimitReachedException;
import com.ghjansen.cas.core.physics.Time; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | throws CloneNotSupportedException, InvalidAbsoluteTimeLimitException, InvalidRelativeTimeLimitException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/simulation/UnidimensionalSimulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCellularAutomataException.java
// public class InvalidCellularAutomataException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -4104738409967924193L;
//
// }
//
... | import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidUniverseException;
import com.ghjansen.cas.core.simulation.Simulation;
import com.ghjansen.cas.unidimensional.ca.UnidimensionalCellularAutomaton;
import com.ghjansen.cas.unidimensional.physics.Unidimen... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCellularAutomataException.java
// public class InvalidCellularAutomataException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -4104738409967924193L;
//
// }
//
... | throws InvalidUniverseException, InvalidCellularAutomataException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/simulation/UnidimensionalSimulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCellularAutomataException.java
// public class InvalidCellularAutomataException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -4104738409967924193L;
//
// }
//
... | import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidUniverseException;
import com.ghjansen.cas.core.simulation.Simulation;
import com.ghjansen.cas.unidimensional.ca.UnidimensionalCellularAutomaton;
import com.ghjansen.cas.unidimensional.physics.Unidimen... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCellularAutomataException.java
// public class InvalidCellularAutomataException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -4104738409967924193L;
//
// }
//
... | throws InvalidUniverseException, InvalidCellularAutomataException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/RuleTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | throws InvalidStateException, InvalidCombinationException, InvalidTransitionException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/RuleTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | throws InvalidStateException, InvalidCombinationException, InvalidTransitionException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/RuleTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | throws InvalidStateException, InvalidCombinationException, InvalidTransitionException { |
ghjansen/cas | cas-ui-desktop/src/main/java/com/ghjansen/cas/ui/desktop/swing/SimulationExportUtil.java | // Path: cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/control/UnidimensionalSimulationController.java
// public class UnidimensionalSimulationController extends SimulationController<UnidimensionalSimulation, UnidimensionalSimulationBuilder> {
//
// public UnidimensionalSimulationController(Unid... | import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.List;
import com.ghjansen.cas.unidimensional.control.UnidimensionalSimulationController;
import com.ghjansen.cas.unidimensional.physics.UnidimensionalCell; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2019 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/control/UnidimensionalSimulationController.java
// public class UnidimensionalSimulationController extends SimulationController<UnidimensionalSimulation, UnidimensionalSimulationBuilder> {
//
// public UnidimensionalSimulationController(Unid... | UnidimensionalCell c = (UnidimensionalCell) simulationController.getSimulation().getUniverse().getSpace().getInitial().get(i); |
ghjansen/cas | cas-ui-desktop/src/test/java/com/ghjansen/cas/ui/desktop/swing/MainTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import java.util.List;
import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
import com.ghjansen.cas.unidimensional.physics.UnidimensionalCell;
import org.junit.Ignore;
import org.junit.Test;
import javax.imageio.ImageIO;
imp... | @Test
public void elementaryUniqueBlackCellInitialCondition() throws InterruptedException {
int msDelay = 3000;
String txtCells = "540";
String txtIterations = "539";
Main main = new Main();
main.em.omitDiscardConfirmation = true;
for(int i = 0; i < 256; i++){
... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | } catch (InvalidSimulationParameterException e) { |
ghjansen/cas | cas-ui-desktop/src/test/java/com/ghjansen/cas/ui/desktop/swing/MainTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import java.util.List;
import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
import com.ghjansen.cas.unidimensional.physics.UnidimensionalCell;
import org.junit.Ignore;
import org.junit.Test;
import javax.imageio.ImageIO;
imp... | String txtCells = "540";
String txtIterations = "539";
Main main = new Main();
main.em.omitDiscardConfirmation = true;
for(int i = 0; i < 256; i++){
main.txtCells.setText(txtCells);
main.txtIterations.setText(txtIterations);
main.txtRuleNumber.... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | } catch (SimulationBuilderException e) { |
ghjansen/cas | cas-ui-desktop/src/test/java/com/ghjansen/cas/ui/desktop/swing/MainTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import java.util.List;
import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
import com.ghjansen.cas.unidimensional.physics.UnidimensionalCell;
import org.junit.Ignore;
import org.junit.Test;
import javax.imageio.ImageIO;
imp... | String fileName = String.valueOf(path);
if(!fileName.endsWith(".cas")){
fileName = fileName + ".cas";
}
String content = main.em.gson.toJson(main.em.simulationParameter);
FileWriter fw;
try {
fw = new FileWriter(fileName);
fw.write(cont... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | UnidimensionalCell c = (UnidimensionalCell) main.em.simulationController.getSimulation().getUniverse().getSpace().getInitial().get(i); |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/UnitTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidStateException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/UnitTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidCombinationException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/UnitTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidTransitionException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/UnitTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (TimeLimitReachedException e) { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Cell.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/State.java
// public abstract class State {
//
// private String name;
// private int value;
//
// protected State(String name, int value) {
// if (name == null) {
// throw new IllegalArgumentException();
// }
// ... | import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/State.java
// public abstract class State {
//
// private String name;
// private int value;
//
// protected State(String name, int value) {
// if (name == null) {
// throw new IllegalArgumentException();
// }
// ... | protected Cell(N transition) throws InvalidTransitionException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Cell.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/State.java
// public abstract class State {
//
// private String name;
// private int value;
//
// protected State(String name, int value) {
// if (name == null) {
// throw new IllegalArgumentException();
// }
// ... | import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/State.java
// public abstract class State {
//
// private String name;
// private int value;
//
// protected State(String name, int value) {
// if (name == null) {
// throw new IllegalArgumentException();
// }
// ... | protected Cell(A state) throws InvalidStateException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Space.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjansen.cas.core.exce... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Space.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjansen.cas.core.exce... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Space.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjansen.cas.core.exce... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Space.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjansen.cas.core.exce... | protected Space(T time, List<X> initialCondition, boolean keepHistory)
throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException {
if (time.getRelative() != null && !time.getRelative().isEmpty()) {
this.dimensionalAmount = time.getRe... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | public O getCombination(T time) throws InvalidStateException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Space.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjansen.cas.core.exce... | validateDimensions(initialCondition, this.dimensionalAmount);
this.initial = initialCondition;
} else {
throw new InvalidInitialConditionException();
}
this.keepHistory = keepHistory;
this.rotating = false;
initialize();
}
protected vo... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | public void setState(T time, N transition) throws InvalidTransitionException { |
ghjansen/cas | cas-unidimensional/src/test/java/com/ghjansen/cas/unidimensional/ca/UnidimensionalTransitionTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | public void unidimensionalTransitionConstructor() throws InvalidStateException, InvalidCombinationException { |
ghjansen/cas | cas-unidimensional/src/test/java/com/ghjansen/cas/unidimensional/ca/UnidimensionalTransitionTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | public void unidimensionalTransitionConstructor() throws InvalidStateException, InvalidCombinationException { |
ghjansen/cas | cas-control/src/test/java/com/ghjansen/cas/control/simulation/SimulationControllerTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | import org.mockito.runners.MockitoJUnitRunner;
import java.util.concurrent.ExecutorService;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.*;
import com.ghjansen.cas.control.exception.SimulationAlreadyActiveException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
i... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2020 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | @Mock private Simulation simulation; |
ghjansen/cas | cas-control/src/test/java/com/ghjansen/cas/control/simulation/SimulationControllerTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | import org.mockito.runners.MockitoJUnitRunner;
import java.util.concurrent.ExecutorService;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.*;
import com.ghjansen.cas.control.exception.SimulationAlreadyActiveException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
i... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2020 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | public void before() throws SimulationBuilderException { |
ghjansen/cas | cas-control/src/test/java/com/ghjansen/cas/control/simulation/SimulationControllerTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | import org.mockito.runners.MockitoJUnitRunner;
import java.util.concurrent.ExecutorService;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.*;
import com.ghjansen.cas.control.exception.SimulationAlreadyActiveException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
i... | @Mock private Task completeTask;
@Mock private Task iterationTask;
@Mock private Task unitTask;
@Mock private TaskNotification notification;
@InjectMocks private DimensionalSimulationController dscm;
@Before
public void before() throws SimulationBuilderException {
Whitebox.setIntern... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | public void dimensionalSimulationControllerStartCompleteTaskSuccess() throws SimulationAlreadyActiveException { |
ghjansen/cas | cas-control/src/test/java/com/ghjansen/cas/control/simulation/SimulationControllerTest.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | import org.mockito.runners.MockitoJUnitRunner;
import java.util.concurrent.ExecutorService;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.*;
import com.ghjansen.cas.control.exception.SimulationAlreadyActiveException;
import com.ghjansen.cas.control.exception.SimulationBuilderException;
i... | }
@Test
public void dimensionalSimulationControllerStartUnitTaskSuccess() throws SimulationAlreadyActiveException {
given(simulation.isActive()).willReturn(false);
dscm.startUnitTask();
verify(unitTask).run();
}
@Test(expected = SimulationAlreadyActiveException.class)
p... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/SimulationAlreadyActiveException.java
// public class SimulationAlreadyActiveException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 3256836960787368903L;
//
// }... | TimeLimitReachedException e = new TimeLimitReachedException(); |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/ca/UnidimensionalTransition.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Transition.java
// public abstract class Transition<O extends Combination, A extends State> {
//
// private O combination;
// private A state;
//
// protected Transition(O combination, A state) throws InvalidCombinationException, InvalidStateExcepti... | import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Transition.java
// public abstract class Transition<O extends Combination, A extends State> {
//
// private O combination;
// private A state;
//
// protected Transition(O combination, A state) throws InvalidCombinationException, InvalidStateExcepti... | throws InvalidCombinationException, InvalidStateException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/ca/UnidimensionalTransition.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Transition.java
// public abstract class Transition<O extends Combination, A extends State> {
//
// private O combination;
// private A state;
//
// protected Transition(O combination, A state) throws InvalidCombinationException, InvalidStateExcepti... | import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Transition.java
// public abstract class Transition<O extends Combination, A extends State> {
//
// private O combination;
// private A state;
//
// protected Transition(O combination, A state) throws InvalidCombinationException, InvalidStateExcepti... | throws InvalidCombinationException, InvalidStateException { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/IterationTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidStateException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/IterationTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidCombinationException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/IterationTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidTransitionException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/IterationTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (TimeLimitReachedException e) { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/LimitedTimeSpace.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjans... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2020 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/LimitedTimeSpace.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjans... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2020 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/LimitedTimeSpace.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountException;
import com.ghjansen.cas.core.exception.InvalidDimensionalSpaceException;
import com.ghjans... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2020 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/control/UnidimensionalInitialConditionParameter.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/parameter/InitialConditionParameter.java
// public abstract class InitialConditionParameter {
//
// private final List<SequenceParameter> sequences;
//
// protected InitialConditionParameter(List<SequenceParameter> sequences) {
// this.sequen... | import com.ghjansen.cas.control.parameter.SequenceParameter;
import java.util.ArrayList;
import java.util.Arrays;
import com.ghjansen.cas.control.parameter.InitialConditionParameter; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/parameter/InitialConditionParameter.java
// public abstract class InitialConditionParameter {
//
// private final List<SequenceParameter> sequences;
//
// protected InitialConditionParameter(List<SequenceParameter> sequences) {
// this.sequen... | super(new ArrayList<SequenceParameter>(Arrays.asList(sequences))); |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/DimensionalCell.java | // Path: cas-core/src/test/java/com/ghjansen/cas/core/ca/DimensionalState.java
// public final class DimensionalState extends State {
//
// public DimensionalState(String name, int value) {
// super(name, value);
// }
//
// }
//
// Path: cas-core/src/test/java/com/ghjansen/cas/core/ca/DimensionalTransition.java
... | import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/test/java/com/ghjansen/cas/core/ca/DimensionalState.java
// public final class DimensionalState extends State {
//
// public DimensionalState(String name, int value) {
// super(name, value);
// }
//
// }
//
// Path: cas-core/src/test/java/com/ghjansen/cas/core/ca/DimensionalTransition.java
... | public DimensionalCell(DimensionalState state) throws InvalidStateException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/TransitionTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import com.ghjansen.cas.core.exception.InvalidStateException;
import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidCombinationException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | public void dimensionalTransitionConstructor() throws InvalidStateException, InvalidCombinationException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/TransitionTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import com.ghjansen.cas.core.exception.InvalidStateException;
import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.exception.InvalidCombinationException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | public void dimensionalTransitionConstructor() throws InvalidStateException, InvalidCombinationException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/simulation/DimensionalSimulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidUniverseException;
import com.ghjansen.cas.core.physics.Universe; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | throws InvalidUniverseException, InvalidCellularAutomataException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/simulation/DimensionalSimulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidUniverseException;
import com.ghjansen.cas.core.physics.Universe; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | throws InvalidUniverseException, InvalidCellularAutomataException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/ca/DimensionalCellularAutomaton.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidRuleException.java
// public class InvalidRuleException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 5840928619484335072L;
//
// }
//
// Path: cas-core/src/tes... | import com.ghjansen.cas.core.exception.InvalidRuleException;
import com.ghjansen.cas.core.physics.DimensionalSpace;
import com.ghjansen.cas.core.physics.DimensionalTime; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidRuleException.java
// public class InvalidRuleException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 5840928619484335072L;
//
// }
//
// Path: cas-core/src/tes... | public DimensionalCellularAutomaton(DimensionalRule rule) throws InvalidRuleException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/ca/Rule.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | protected Rule(N... transitions) throws InvalidTransitionException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/ca/Rule.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | public N getTransition(O combination) throws InvalidStateException, InvalidCombinationException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/ca/Rule.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidCombinationException.java
// public class InvalidCombinationException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 884762124844706448L;
//
// }
//
// Path: cas... | public N getTransition(O combination) throws InvalidStateException, InvalidCombinationException { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/CompleteTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidStateException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/CompleteTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidCombinationException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/CompleteTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (InvalidTransitionException e) { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/task/CompleteTask.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | import com.ghjansen.cas.control.simulation.SimulationController;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;
import com.ghjansen.cas.core.exception.TimeLimitReachedExc... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationController.java
// public abstract class SimulationController<I extends Simulation, M extends SimulationBuilder> {
//
// private final I simulation;
// private final ExecutorService executor;
// private final Task completeTask... | } catch (TimeLimitReachedException e) { |
ghjansen/cas | cas-unidimensional/src/main/java/com/ghjansen/cas/unidimensional/ca/UnidimensionalCellularAutomaton.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidRuleException;
import com.ghjansen.cas.unidimensional.physics.UnidimensionalSpace;
import com.ghjansen.cas.unidimensional.physics.UnidimensionalTime; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | public UnidimensionalCellularAutomaton(UnidimensionalGeneralRule rule) throws InvalidRuleException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Universe.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidSpaceException.java
// public class InvalidSpaceException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 9045617613507195324L;
//
// }
//
// Path: cas-core/src/m... | import com.ghjansen.cas.core.exception.InvalidSpaceException;
import com.ghjansen.cas.core.exception.InvalidTimeException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidSpaceException.java
// public class InvalidSpaceException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 9045617613507195324L;
//
// }
//
// Path: cas-core/src/m... | protected Universe(S space, T time) throws InvalidSpaceException, InvalidTimeException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Universe.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidSpaceException.java
// public class InvalidSpaceException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 9045617613507195324L;
//
// }
//
// Path: cas-core/src/m... | import com.ghjansen.cas.core.exception.InvalidSpaceException;
import com.ghjansen.cas.core.exception.InvalidTimeException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidSpaceException.java
// public class InvalidSpaceException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 9045617613507195324L;
//
// }
//
// Path: cas-core/src/m... | protected Universe(S space, T time) throws InvalidSpaceException, InvalidTimeException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Time.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.exception.TimeLimitReachedException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | protected Time(final int limit) throws InvalidAbsoluteTimeLimitException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Time.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.exception.TimeLimitReachedException; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | throws InvalidAbsoluteTimeLimitException, InvalidRelativeTimeLimitException, CloneNotSupportedException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/physics/Time.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import com.ghjansen.cas.core.exception.InvalidAbsoluteTimeLimitException;
import com.ghjansen.cas.core.exception.InvalidRelativeTimeLimitException;
import com.ghjansen.cas.core.exception.TimeLimitReachedException; | throw new InvalidRelativeTimeLimitException();
}
}
this.relativeTime = (List<Time>) relTimTmp.clone();
} else {
throw new InvalidRelativeTimeLimitException();
}
}
private void initializeLimit(int limit) throws InvalidAbsolu... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/exception/InvalidAbsoluteTimeLimitException.java
// public class InvalidAbsoluteTimeLimitException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = 8503779819489685979L;
//
// }
// ... | public void increase() throws TimeLimitReachedException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/DimensionalSpace.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountExcept... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/DimensionalSpace.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountExcept... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/DimensionalSpace.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import java.util.ArrayList;
import java.util.List;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.Transition;
import com.ghjansen.cas.core.exception.InvalidDimensionalAmountExcept... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidDimensionalAmountException, InvalidInitialConditionException, InvalidDimensionalSpaceException { |
ghjansen/cas | cas-ui-desktop/src/main/java/com/ghjansen/cas/ui/desktop/manager/Notification.java | // Path: cas-ui-desktop/src/main/java/com/ghjansen/cas/ui/desktop/i18n/Translator.java
// public class Translator {
//
// private static Translator instance;
// private static Gson gson;
// private static GsonBuilder gsonBuilder = new GsonBuilder();
// private Dictionary dictionary = new Dictionary();
// private ... | import com.ghjansen.cas.ui.desktop.i18n.Translator;
import com.ghjansen.cas.ui.desktop.swing.ActivityState;
import com.ghjansen.cas.unidimensional.control.UnidimensionalTaskNotification; | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-ui-desktop/src/main/java/com/ghjansen/cas/ui/desktop/i18n/Translator.java
// public class Translator {
//
// private static Translator instance;
// private static Gson gson;
// private static GsonBuilder gsonBuilder = new GsonBuilder();
// private Dictionary dictionary = new Dictionary();
// private ... | em.setActivityState(ActivityState.ANALYSING); |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/simulation/Simulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | throws InvalidUniverseException, InvalidCellularAutomataException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/simulation/Simulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | throws InvalidUniverseException, InvalidCellularAutomataException { |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/simulation/Simulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | public void simulateComplete() throws InvalidStateException, InvalidCombinationException, InvalidTransitionException, |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/simulation/Simulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | public void simulateComplete() throws InvalidStateException, InvalidCombinationException, InvalidTransitionException, |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/simulation/Simulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | public void simulateComplete() throws InvalidStateException, InvalidCombinationException, InvalidTransitionException, |
ghjansen/cas | cas-core/src/main/java/com/ghjansen/cas/core/simulation/Simulation.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | import com.ghjansen.cas.core.ca.CellularAutomaton;
import com.ghjansen.cas.core.exception.InvalidCellularAutomataException;
import com.ghjansen.cas.core.exception.InvalidCombinationException;
import com.ghjansen.cas.core.exception.InvalidStateException;
import com.ghjansen.cas.core.exception.InvalidTransitionException;... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/CellularAutomaton.java
// public abstract class CellularAutomaton<R extends Rule, S extends Space, T extends Time, O extends Combination,
// N extends Transition> {
//
// private R rule;
//
// protected CellularAutomaton(R rule) throws InvalidRu... | TimeLimitReachedException { |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationParameter.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.parameter.InitialConditionParameter;
import com.ghjansen.cas.control.parameter.LimitsParameter;
import com.ghjansen.cas.control.parameter.RuleConfigurationParameter;
import com.ghjansen.cas.control.parameter.R... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | private final RuleConfigurationParameter ruleConfigurationParameter; |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationParameter.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.parameter.InitialConditionParameter;
import com.ghjansen.cas.control.parameter.LimitsParameter;
import com.ghjansen.cas.control.parameter.RuleConfigurationParameter;
import com.ghjansen.cas.control.parameter.R... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | private final LimitsParameter limitsParameter; |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationParameter.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.parameter.InitialConditionParameter;
import com.ghjansen.cas.control.parameter.LimitsParameter;
import com.ghjansen.cas.control.parameter.RuleConfigurationParameter;
import com.ghjansen.cas.control.parameter.R... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | private final InitialConditionParameter initialConditionParameter; |
ghjansen/cas | cas-control/src/main/java/com/ghjansen/cas/control/simulation/SimulationParameter.java | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | import com.ghjansen.cas.control.exception.InvalidSimulationParameterException;
import com.ghjansen.cas.control.parameter.InitialConditionParameter;
import com.ghjansen.cas.control.parameter.LimitsParameter;
import com.ghjansen.cas.control.parameter.RuleConfigurationParameter;
import com.ghjansen.cas.control.parameter.R... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at y... | // Path: cas-control/src/main/java/com/ghjansen/cas/control/exception/InvalidSimulationParameterException.java
// public class InvalidSimulationParameterException extends Exception {
//
// /**
// * Serialization management
// */
// private static final long serialVersionUID = -6035012354830467870L;
/... | InitialConditionParameter initialConditionParameter) throws InvalidSimulationParameterException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/CellTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.cor... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidStateException, InvalidCombinationException, InvalidTransitionException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/CellTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.cor... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidStateException, InvalidCombinationException, InvalidTransitionException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/CellTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.cor... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | throws InvalidStateException, InvalidCombinationException, InvalidTransitionException { |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/CellTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.cor... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | final DimensionalState dimensionalBlackState = new DimensionalState("black", 0); |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/CellTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.cor... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | final DimensionalCombination dimensionalCombination = new DimensionalCombination(dimensionalBlackState, |
ghjansen/cas | cas-core/src/test/java/com/ghjansen/cas/core/physics/CellTest.java | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | import org.junit.Assert;
import org.junit.Test;
import com.ghjansen.cas.core.ca.Combination;
import com.ghjansen.cas.core.ca.DimensionalCombination;
import com.ghjansen.cas.core.ca.DimensionalState;
import com.ghjansen.cas.core.ca.DimensionalTransition;
import com.ghjansen.cas.core.ca.State;
import com.ghjansen.cas.cor... | /*
* CAS - Cellular Automata Simulator
* Copyright (C) 2016 Guilherme Humberto Jansen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at ... | // Path: cas-core/src/main/java/com/ghjansen/cas/core/ca/Combination.java
// public abstract class Combination<A extends State> {
//
// private A reference;
// private List<A> neighborhood;
//
// protected Combination(A reference, A... neighbors) throws InvalidStateException {
// if (reference == ... | final DimensionalTransition dimensionalTransition = new DimensionalTransition(dimensionalCombination, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.