Commit 65814756 authored by mey's avatar mey
Browse files

reorganized imports with changed settings

parent eaeff128
package de.zmt.storage; package de.zmt.storage;
import java.util.*; import java.util.Collection;
import java.util.concurrent.*; import java.util.Collections;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.concurrent.DelayQueue;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
import javax.measure.quantity.Quantity; import javax.measure.quantity.Quantity;
......
...@@ -5,8 +5,10 @@ import javax.measure.unit.Unit; ...@@ -5,8 +5,10 @@ import javax.measure.unit.Unit;
import org.jscience.physics.amount.Amount; import org.jscience.physics.amount.Amount;
import de.zmt.util.*; import de.zmt.util.AmountUtil;
import sim.util.*; import de.zmt.util.ValuableAmountAdapter;
import sim.util.Proxiable;
import sim.util.Valuable;
/** /**
* A {@link MutableStorage} that rejects any amount exceeding its limits. Apart * A {@link MutableStorage} that rejects any amount exceeding its limits. Apart
......
...@@ -7,11 +7,14 @@ import java.io.IOException; ...@@ -7,11 +7,14 @@ import java.io.IOException;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.logging.Logger; import java.util.logging.Logger;
import javax.measure.quantity.*; import javax.measure.quantity.Duration;
import javax.measure.unit.*; import javax.measure.quantity.Quantity;
import javax.measure.unit.Unit;
import javax.measure.unit.UnitFormat;
import javax.xml.bind.annotation.adapters.XmlAdapter; import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.jscience.physics.amount.*; import org.jscience.physics.amount.Amount;
import org.jscience.physics.amount.AmountFormat;
/** /**
* General utility methods for dealing with jScience {@link Amount}s. * General utility methods for dealing with jScience {@link Amount}s.
......
...@@ -9,7 +9,8 @@ import org.jscience.physics.amount.Amount; ...@@ -9,7 +9,8 @@ import org.jscience.physics.amount.Amount;
import de.zmt.util.AmountUtil; import de.zmt.util.AmountUtil;
import sim.display.GUIState; import sim.display.GUIState;
import sim.portrayal.*; import sim.portrayal.Inspector;
import sim.portrayal.SimpleInspector;
import sim.portrayal.inspector.ProvidesInspector; import sim.portrayal.inspector.ProvidesInspector;
import sim.util.Properties; import sim.util.Properties;
......
...@@ -2,7 +2,12 @@ package de.zmt.storage; ...@@ -2,7 +2,12 @@ package de.zmt.storage;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import java.io.*; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.logging.Logger; import java.util.logging.Logger;
...@@ -10,7 +15,8 @@ import javax.measure.quantity.Dimensionless; ...@@ -10,7 +15,8 @@ import javax.measure.quantity.Dimensionless;
import javax.measure.unit.Unit; import javax.measure.unit.Unit;
import org.jscience.physics.amount.Amount; import org.jscience.physics.amount.Amount;
import org.junit.*; import org.junit.Before;
import org.junit.Test;
public class AbstractLimitedStoragePipelineTest implements Serializable { public class AbstractLimitedStoragePipelineTest implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -5,8 +5,6 @@ import javax.measure.unit.Unit; ...@@ -5,8 +5,6 @@ import javax.measure.unit.Unit;
import org.jscience.physics.amount.Amount; import org.jscience.physics.amount.Amount;
import de.zmt.storage.ConfigurableStorage;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class LimitedTestStorage extends ConfigurableStorage<Dimensionless> { public class LimitedTestStorage extends ConfigurableStorage<Dimensionless> {
public static final Amount<Dimensionless> LOWER_LIMIT = Amount.valueOf(10.5, Unit.ONE); public static final Amount<Dimensionless> LOWER_LIMIT = Amount.valueOf(10.5, Unit.ONE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment