io.ciera.tool.sql.ooaofooa.message.impl.OperationMessageSetImpl Maven / Gradle / Ivy
package io.ciera.tool.sql.ooaofooa.message.impl;
import io.ciera.runtime.summit.classes.InstanceSet;
import io.ciera.runtime.summit.exceptions.XtumlException;
import io.ciera.runtime.summit.types.UniqueId;
import io.ciera.tool.sql.ooaofooa.message.OperationMessage;
import io.ciera.tool.sql.ooaofooa.message.OperationMessageSet;
import io.ciera.tool.sql.ooaofooa.message.SynchronousMessageSet;
import io.ciera.tool.sql.ooaofooa.message.impl.SynchronousMessageSetImpl;
import io.ciera.tool.sql.ooaofooa.subsystem.O_TFRSet;
import io.ciera.tool.sql.ooaofooa.subsystem.impl.O_TFRSetImpl;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class OperationMessageSetImpl extends InstanceSet implements OperationMessageSet {
public OperationMessageSetImpl() {
}
public OperationMessageSetImpl(Comparator super OperationMessage> comp) {
super(comp);
}
// attributes
@Override
public void setTfr_ID( UniqueId ref_Tfr_ID ) throws XtumlException {
for ( OperationMessage operationmessage : this ) operationmessage.setTfr_ID( ref_Tfr_ID );
}
@Override
public void setMsg_ID( UniqueId ref_Msg_ID ) throws XtumlException {
for ( OperationMessage operationmessage : this ) operationmessage.setMsg_ID( ref_Msg_ID );
}
// selections
@Override
public O_TFRSet R1011_is_invocation_of_O_TFR() throws XtumlException {
O_TFRSet o_tfrset = new O_TFRSetImpl();
for ( OperationMessage operationmessage : this ) o_tfrset.add( operationmessage.R1011_is_invocation_of_O_TFR() );
return o_tfrset;
}
@Override
public SynchronousMessageSet R1020_is_a_SynchronousMessage() throws XtumlException {
SynchronousMessageSet synchronousmessageset = new SynchronousMessageSetImpl();
for ( OperationMessage operationmessage : this ) synchronousmessageset.add( operationmessage.R1020_is_a_SynchronousMessage() );
return synchronousmessageset;
}
@Override
public OperationMessage nullElement() {
return OperationMessageImpl.EMPTY_OPERATIONMESSAGE;
}
@Override
public OperationMessageSet emptySet() {
return new OperationMessageSetImpl();
}
@Override
public OperationMessageSet emptySet(Comparator super OperationMessage> comp) {
return new OperationMessageSetImpl(comp);
}
@Override
public List elements() {
return Arrays.asList(toArray(new OperationMessage[0]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy