at.jku.risc.stout.urauc.data
Modifier and Type | Field and Description |
---|---|
static String |
EQ_PREFIX1
The output will look like "EQ_PREFIX1#i#
EQ_PREFIX2" where #i# is the index of an equation.
|
static String |
EQ_PREFIX2
If EQ_PREFIX2 is null then the output of the index will
also be omitted.
|
static String |
EQ_SEPARATOR
The separator is used to separate the equations of this system.
|
Constructor and Description |
---|
EquationSystem() |
Modifier and Type | Method and Description |
---|---|
void |
add(T equation)
Adds a new equation to this system.
|
void |
addFirst(T equation)
Adds a new equation to this system as head.
|
void |
clear()
Removes all the equations of this system.
|
T |
getFirst()
Retrieves the first element of this system of equations or returns null
if it is empty.
|
T |
getLast()
Retrieves the last element of this system of equations or returns null if
it is empty.
|
boolean |
isEmpty()
Tests whether the system of equations is empty.
|
Iterator<T> |
iterator() |
abstract T |
newEquation()
You have to implement this method, so that an algorithm is able to
instantiate new Equations of arbitrary types.
|
T |
popFirst()
Retrieves and removes the first element of this system of equations or
returns null if it is empty.
|
T |
popLast()
Retrieves and removes the last element of this system of equations or
returns null if it is empty.
|
int |
size()
Returns the number of equations in this system.
|
String |
toString() |
public static String EQ_PREFIX1
public static String EQ_PREFIX2
public static String EQ_SEPARATOR
public void add(T equation)
public void addFirst(T equation)
public void clear()
public T getFirst()
public T getLast()
public boolean isEmpty()
public abstract T newEquation()
public T popFirst()
public T popLast()
public int size()