All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ciera.tool.sql.ooaofooa.instance.impl.SelfQueueEntrySetImpl Maven / Gradle / Ivy

There is a newer version: 2.7.3
Show newest version
package io.ciera.tool.sql.ooaofooa.instance.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.instance.ComponentInstanceSet;
import io.ciera.tool.sql.ooaofooa.instance.PendingEventSet;
import io.ciera.tool.sql.ooaofooa.instance.SelfQueueEntry;
import io.ciera.tool.sql.ooaofooa.instance.SelfQueueEntrySet;
import io.ciera.tool.sql.ooaofooa.instance.impl.ComponentInstanceSetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.PendingEventSetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.SelfQueueEntrySetImpl;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;


public class SelfQueueEntrySetImpl extends InstanceSet implements SelfQueueEntrySet {

    public SelfQueueEntrySetImpl() {
    }

    public SelfQueueEntrySetImpl(Comparator comp) {
        super(comp);
    }

    // attributes
    @Override
    public void setEvent_ID( UniqueId ref_Event_ID ) throws XtumlException {
        for ( SelfQueueEntry selfqueueentry : this ) selfqueueentry.setEvent_ID( ref_Event_ID );
    }
    @Override
    public void setNext_Self_Queue_Entry_ID( UniqueId ref_Next_Self_Queue_Entry_ID ) throws XtumlException {
        for ( SelfQueueEntry selfqueueentry : this ) selfqueueentry.setNext_Self_Queue_Entry_ID( ref_Next_Self_Queue_Entry_ID );
    }
    @Override
    public void setExecution_Engine_ID( UniqueId ref_Execution_Engine_ID ) throws XtumlException {
        for ( SelfQueueEntry selfqueueentry : this ) selfqueueentry.setExecution_Engine_ID( ref_Execution_Engine_ID );
    }
    @Override
    public void setSelf_Queue_Entry_ID( UniqueId m_Self_Queue_Entry_ID ) throws XtumlException {
        for ( SelfQueueEntry selfqueueentry : this ) selfqueueentry.setSelf_Queue_Entry_ID( m_Self_Queue_Entry_ID );
    }


    // selections
    @Override
    public ComponentInstanceSet R2946_ComponentInstance() throws XtumlException {
        ComponentInstanceSet componentinstanceset = new ComponentInstanceSetImpl();
        for ( SelfQueueEntry selfqueueentry : this ) componentinstanceset.add( selfqueueentry.R2946_ComponentInstance() );
        return componentinstanceset;
    }
    @Override
    public PendingEventSet R2946_PendingEvent() throws XtumlException {
        PendingEventSet pendingeventset = new PendingEventSetImpl();
        for ( SelfQueueEntry selfqueueentry : this ) pendingeventset.add( selfqueueentry.R2946_PendingEvent() );
        return pendingeventset;
    }
    @Override
    public SelfQueueEntrySet R2947_follows_SelfQueueEntry() throws XtumlException {
        SelfQueueEntrySet selfqueueentryset = new SelfQueueEntrySetImpl();
        for ( SelfQueueEntry selfqueueentry : this ) selfqueueentryset.add( selfqueueentry.R2947_follows_SelfQueueEntry() );
        return selfqueueentryset;
    }
    @Override
    public SelfQueueEntrySet R2947_precedes_SelfQueueEntry() throws XtumlException {
        SelfQueueEntrySet selfqueueentryset = new SelfQueueEntrySetImpl();
        for ( SelfQueueEntry selfqueueentry : this ) selfqueueentryset.add( selfqueueentry.R2947_precedes_SelfQueueEntry() );
        return selfqueueentryset;
    }


    @Override
    public SelfQueueEntry nullElement() {
        return SelfQueueEntryImpl.EMPTY_SELFQUEUEENTRY;
    }

    @Override
    public SelfQueueEntrySet emptySet() {
      return new SelfQueueEntrySetImpl();
    }

    @Override
    public SelfQueueEntrySet emptySet(Comparator comp) {
      return new SelfQueueEntrySetImpl(comp);
    }

    @Override
    public List elements() {
        return Arrays.asList(toArray(new SelfQueueEntry[0]));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy