
io.ciera.tool.sql.ooaofooa.interaction.impl.LifespanSetImpl Maven / Gradle / Ivy
package io.ciera.tool.sql.ooaofooa.interaction.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.interaction.ActorParticipantSet;
import io.ciera.tool.sql.ooaofooa.interaction.InteractionParticipantSet;
import io.ciera.tool.sql.ooaofooa.interaction.Lifespan;
import io.ciera.tool.sql.ooaofooa.interaction.LifespanSet;
import io.ciera.tool.sql.ooaofooa.interaction.TimingMarkSet;
import io.ciera.tool.sql.ooaofooa.interaction.impl.ActorParticipantSetImpl;
import io.ciera.tool.sql.ooaofooa.interaction.impl.InteractionParticipantSetImpl;
import io.ciera.tool.sql.ooaofooa.interaction.impl.TimingMarkSetImpl;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class LifespanSetImpl extends InstanceSet implements LifespanSet {
public LifespanSetImpl() {
}
public LifespanSetImpl(Comparator super Lifespan> comp) {
super(comp);
}
// attributes
@Override
public void setSource_Part_ID( UniqueId ref_Source_Part_ID ) throws XtumlException {
for ( Lifespan lifespan : this ) lifespan.setSource_Part_ID( ref_Source_Part_ID );
}
@Override
public void setPart_ID( UniqueId ref_Part_ID ) throws XtumlException {
for ( Lifespan lifespan : this ) lifespan.setPart_ID( ref_Part_ID );
}
@Override
public void setDestroyed( boolean m_Destroyed ) throws XtumlException {
for ( Lifespan lifespan : this ) lifespan.setDestroyed( m_Destroyed );
}
@Override
public void setDescrip( String m_Descrip ) throws XtumlException {
for ( Lifespan lifespan : this ) lifespan.setDescrip( m_Descrip );
}
// selections
@Override
public InteractionParticipantSet R930_is_a_InteractionParticipant() throws XtumlException {
InteractionParticipantSet interactionparticipantset = new InteractionParticipantSetImpl();
for ( Lifespan lifespan : this ) interactionparticipantset.add( lifespan.R930_is_a_InteractionParticipant() );
return interactionparticipantset;
}
@Override
public TimingMarkSet R931_has_a_point_in_time_referenced_by_TimingMark() throws XtumlException {
TimingMarkSet timingmarkset = new TimingMarkSetImpl();
for ( Lifespan lifespan : this ) timingmarkset.addAll( lifespan.R931_has_a_point_in_time_referenced_by_TimingMark() );
return timingmarkset;
}
@Override
public InteractionParticipantSet R940_extends_from_InteractionParticipant() throws XtumlException {
InteractionParticipantSet interactionparticipantset = new InteractionParticipantSetImpl();
for ( Lifespan lifespan : this ) interactionparticipantset.add( lifespan.R940_extends_from_InteractionParticipant() );
return interactionparticipantset;
}
@Override
public ActorParticipantSet R949_defines_bounds_of_existence_ActorParticipant() throws XtumlException {
ActorParticipantSet actorparticipantset = new ActorParticipantSetImpl();
for ( Lifespan lifespan : this ) actorparticipantset.add( lifespan.R949_defines_bounds_of_existence_ActorParticipant() );
return actorparticipantset;
}
@Override
public Lifespan nullElement() {
return LifespanImpl.EMPTY_LIFESPAN;
}
@Override
public LifespanSet emptySet() {
return new LifespanSetImpl();
}
@Override
public LifespanSet emptySet(Comparator super Lifespan> comp) {
return new LifespanSetImpl(comp);
}
@Override
public List elements() {
return Arrays.asList(toArray(new Lifespan[0]));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy