Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions src-generated/edu/nps/moves/dis7/pdus/AggregateMarking.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Copyright (c) 2008-2023, MOVES Institute, Naval Postgraduate School (NPS). All rights reserved.
* This work is provided under a BSD-style open-source license, see project
* <a href="https://savage.nps.edu/opendis7-java/license.html" target="_blank">license.html</a> and <a href="https://savage.nps.edu/opendis7-java/license.txt" target="_blank">license.txt</a>
*/
// header autogenerated using string template dis7javalicense.txt

/**
* Copyright (c) 2008-2023, MOVES Institute, Naval Postgraduate School (NPS). All rights reserved.
* This work is provided under a BSD-style open-source license, see project
* <a href="https://savage.nps.edu/opendis7-java/license.html" target="_blank">license.html</a> and <a href="https://savage.nps.edu/opendis7-java/license.txt" target="_blank">license.txt</a>
*/
// header autogenerated using string template dis7javalicense.txt


package edu.nps.moves.dis7.pdus;
Expand All @@ -20,21 +20,21 @@
public class AggregateMarking extends Object implements Serializable
{
/** The character set uid 45 */
protected EntityMarkingCharacterSet characterSet = EntityMarkingCharacterSet.values()[0];
protected EntityMarkingCharacterSet characterSet = EntityMarkingCharacterSet.values()[0];

/** The characters */
protected byte[] characters = new byte[31];
protected byte[] characters = new byte[31];


/** Constructor creates and configures a new instance object */
public AggregateMarking()
{
}

/**
* Returns size of this serialized (marshalled) object in bytes
* @see <a href="https://en.wikipedia.org/wiki/Marshalling_(computer_science)" target="_blank">https://en.wikipedia.org/wiki/Marshalling_(computer_science)</a>
* @return serialized size in bytes
/**
* Returns size of this serialized (marshalled) object in bytes
* @see <a href="https://en.wikipedia.org/wiki/Marshalling_(computer_science)" target="_blank">https://en.wikipedia.org/wiki/Marshalling_(computer_science)</a>
* @return serialized size in bytes
*/
public synchronized int getMarshalledSize()
{
Expand All @@ -53,30 +53,30 @@ public synchronized int getMarshalledSize()
* @param pCharacterSet new value of interest
* @return same object to permit progressive setters */
public synchronized AggregateMarking setCharacterSet(EntityMarkingCharacterSet pCharacterSet)
{
{
characterSet = pCharacterSet;
return this;
}
/** Getter for {@link AggregateMarking#characterSet}
* @return value of interest */
public EntityMarkingCharacterSet getCharacterSet()
{
return characterSet;
{
return characterSet;
}

/** Setter for {@link AggregateMarking#characters}
* @param pCharacters new value of interest
* @return same object to permit progressive setters */
public synchronized AggregateMarking setCharacters(byte[] pCharacters)
{
characters = pCharacters;
{
characters = Arrays.copyOf(pCharacters, characters.length);
return this;
}
/** Getter for {@link AggregateMarking#characters}
* @return value of interest */
public byte[] getCharacters()
{
return characters;
{
return characters;
}

/**
Expand All @@ -87,17 +87,17 @@ public byte[] getCharacters()
*/
public synchronized void marshal(DataOutputStream dos) throws Exception
{
try
try
{
characterSet.marshal(dos);

for (int idx = 0; idx < characters.length; idx++)
dos.writeByte(characters[idx]);

}
}
catch(Exception e)
{
System.err.println(e);
{
System.err.println(e);
}
}

Expand All @@ -112,20 +112,20 @@ public synchronized void marshal(DataOutputStream dos) throws Exception
public synchronized int unmarshal(DataInputStream dis) throws Exception
{
int uPosition = 0;
try
try
{
characterSet = EntityMarkingCharacterSet.unmarshalEnum(dis);
uPosition += characterSet.getMarshalledSize();
for (int idx = 0; idx < characters.length; idx++)
characters[idx] = dis.readByte();
uPosition += (characters.length * 1);
}
}
catch(Exception e)
{
System.err.println(e);
{
System.err.println(e);
}
return getMarshalledSize();
}
}

/**
* Packs an object into the ByteBuffer.
Expand Down Expand Up @@ -168,7 +168,7 @@ public synchronized int unmarshal(java.nio.ByteBuffer byteBuffer) throws Excepti
System.err.println("*** buffer underflow error while unmarshalling " + this.getClass().getName());
}
return getMarshalledSize();
}
}

/*
* Override of default equals method. Calls equalsImpl() for content comparison.
Expand Down
Loading