adds a xml alias

This commit is contained in:
hneemann 2021-01-26 13:07:21 +01:00
parent 36e0b5fea3
commit 5fc231cb1a
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,8 @@ Release Notes
HEAD, planned as v0.27
- Added fixed point and floating point number formats
- Refactoring of the expression format setting.
CAUTION: All the general settings are maybe lost at restart!
v0.26, released on 25. Jan. 2021
- Performance improvement of the simulation start.

View File

@ -8,6 +8,7 @@ package de.neemann.digital.draw.elements;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.PrettyPrintWriter;
import de.neemann.digital.XStreamValid;
import de.neemann.digital.analyse.expression.format.FormatToExpression;
import de.neemann.digital.core.Observer;
import de.neemann.digital.core.*;
import de.neemann.digital.core.arithmetic.BarrelShifterMode;
@ -70,6 +71,7 @@ public class Circuit implements Copyable<Circuit> {
xStream.alias("wire", Wire.class);
xStream.alias("circuit", Circuit.class);
xStream.alias("intFormat", IntFormat.class);
xStream.alias("exprFormat", FormatToExpression.class);
xStream.alias("barrelShifterMode", BarrelShifterMode.class);
xStream.alias("direction", LeftRightFormat.class);
xStream.alias("rotation", Rotation.class);