
io.ciera.tool.sql.ooaofooa.instance.impl.ComponentInstanceImpl Maven / Gradle / Ivy
package io.ciera.tool.sql.ooaofooa.instance.impl;
import io.ciera.runtime.instanceloading.AttributeChangedDelta;
import io.ciera.runtime.instanceloading.InstanceCreatedDelta;
import io.ciera.runtime.summit.application.IRunContext;
import io.ciera.runtime.summit.classes.IInstanceIdentifier;
import io.ciera.runtime.summit.classes.InstanceIdentifier;
import io.ciera.runtime.summit.classes.ModelInstance;
import io.ciera.runtime.summit.exceptions.EmptyInstanceException;
import io.ciera.runtime.summit.exceptions.InstancePopulationException;
import io.ciera.runtime.summit.exceptions.XtumlException;
import io.ciera.runtime.summit.types.IWhere;
import io.ciera.runtime.summit.types.IXtumlType;
import io.ciera.runtime.summit.types.StringUtil;
import io.ciera.runtime.summit.types.UniqueId;
import io.ciera.tool.Sql;
import io.ciera.tool.sql.ooaofooa.component.C_C;
import io.ciera.tool.sql.ooaofooa.component.componentlibrary.ComponentReference;
import io.ciera.tool.sql.ooaofooa.component.componentlibrary.impl.ComponentReferenceImpl;
import io.ciera.tool.sql.ooaofooa.component.impl.C_CImpl;
import io.ciera.tool.sql.ooaofooa.elementpackaging.EP_PKG;
import io.ciera.tool.sql.ooaofooa.elementpackaging.impl.EP_PKGImpl;
import io.ciera.tool.sql.ooaofooa.instance.ComponentInstance;
import io.ciera.tool.sql.ooaofooa.instance.ComponentInstanceContainer;
import io.ciera.tool.sql.ooaofooa.instance.EventQueueEntry;
import io.ciera.tool.sql.ooaofooa.instance.EventQueueEntrySet;
import io.ciera.tool.sql.ooaofooa.instance.I_INS;
import io.ciera.tool.sql.ooaofooa.instance.I_INSSet;
import io.ciera.tool.sql.ooaofooa.instance.IntercomponentQueueEntry;
import io.ciera.tool.sql.ooaofooa.instance.IntercomponentQueueEntrySet;
import io.ciera.tool.sql.ooaofooa.instance.Monitor;
import io.ciera.tool.sql.ooaofooa.instance.MonitorSet;
import io.ciera.tool.sql.ooaofooa.instance.PendingEvent;
import io.ciera.tool.sql.ooaofooa.instance.PendingEventSet;
import io.ciera.tool.sql.ooaofooa.instance.RuntimeChannel;
import io.ciera.tool.sql.ooaofooa.instance.RuntimeChannelSet;
import io.ciera.tool.sql.ooaofooa.instance.SelfQueueEntry;
import io.ciera.tool.sql.ooaofooa.instance.SelfQueueEntrySet;
import io.ciera.tool.sql.ooaofooa.instance.Stack;
import io.ciera.tool.sql.ooaofooa.instance.impl.ComponentInstanceContainerImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.EventQueueEntrySetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.I_INSSetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.IntercomponentQueueEntrySetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.MonitorSetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.PendingEventSetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.RuntimeChannelSetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.SelfQueueEntrySetImpl;
import io.ciera.tool.sql.ooaofooa.instance.impl.StackImpl;
import ooaofooa.datatypes.Instance;
import ooaofooa.datatypes.ReentrantLock;
public class ComponentInstanceImpl extends ModelInstance implements ComponentInstance {
public static final String KEY_LETTERS = "I_EXE";
public static final ComponentInstance EMPTY_COMPONENTINSTANCE = new EmptyComponentInstance();
private Sql context;
// constructors
private ComponentInstanceImpl( Sql context ) {
this.context = context;
m_Running = false;
m_Execution_Engine_ID = UniqueId.random();
m_Dom_IDdeprecated = UniqueId.random();
ref_Component_Id = UniqueId.random();
ref_Package_ID = UniqueId.random();
m_Next_Unique_ID = 0;
m_Next_Instance_ID = 0;
ref_ImportedComponent_Id = UniqueId.random();
m_Label = "";
m_EQE_Lock = new ReentrantLock();
m_SQE_Lock = new ReentrantLock();
ref_Container_ID = UniqueId.random();
m_RealizedBy = new Instance();
R2930_controls_Stack_inst = StackImpl.EMPTY_STACK;
R2944_EventQueueEntry_set = new EventQueueEntrySetImpl();
R2946_SelfQueueEntry_set = new SelfQueueEntrySetImpl();
R2949_monitors_Monitor_set = new MonitorSetImpl();
R2955_is_verifying_instance_of_C_C_inst = C_CImpl.EMPTY_C_C;
R2957_creates_I_INS_set = new I_INSSetImpl();
R2963_is_verifying_instance_of_ComponentReference_inst = ComponentReferenceImpl.EMPTY_COMPONENTREFERENCE;
R2964_houses_PendingEvent_set = new PendingEventSetImpl();
R2968_is_interface_provider_to_RuntimeChannel_set = new RuntimeChannelSetImpl();
R2968_is_interface_requirer_of_RuntimeChannel_set = new RuntimeChannelSetImpl();
R2970_is_verifying_EP_PKG_inst = EP_PKGImpl.EMPTY_EP_PKG;
R2974_ComponentInstanceContainer_inst = ComponentInstanceContainerImpl.EMPTY_COMPONENTINSTANCECONTAINER;
R2975_ComponentInstanceContainer_inst = ComponentInstanceContainerImpl.EMPTY_COMPONENTINSTANCECONTAINER;
R2976_sends_PendingEvent_set = new PendingEventSetImpl();
R2977_IntercomponentQueueEntry_set = new IntercomponentQueueEntrySetImpl();
}
private ComponentInstanceImpl( Sql context, UniqueId instanceId, boolean m_Running, UniqueId m_Execution_Engine_ID, UniqueId m_Dom_IDdeprecated, UniqueId ref_Component_Id, UniqueId ref_Package_ID, int m_Next_Unique_ID, int m_Next_Instance_ID, UniqueId ref_ImportedComponent_Id, String m_Label, ReentrantLock m_EQE_Lock, ReentrantLock m_SQE_Lock, UniqueId ref_Container_ID, Instance m_RealizedBy ) {
super(instanceId);
this.context = context;
this.m_Running = m_Running;
this.m_Execution_Engine_ID = m_Execution_Engine_ID;
this.m_Dom_IDdeprecated = m_Dom_IDdeprecated;
this.ref_Component_Id = ref_Component_Id;
this.ref_Package_ID = ref_Package_ID;
this.m_Next_Unique_ID = m_Next_Unique_ID;
this.m_Next_Instance_ID = m_Next_Instance_ID;
this.ref_ImportedComponent_Id = ref_ImportedComponent_Id;
this.m_Label = m_Label;
this.m_EQE_Lock = m_EQE_Lock;
this.m_SQE_Lock = m_SQE_Lock;
this.ref_Container_ID = ref_Container_ID;
this.m_RealizedBy = m_RealizedBy;
R2930_controls_Stack_inst = StackImpl.EMPTY_STACK;
R2944_EventQueueEntry_set = new EventQueueEntrySetImpl();
R2946_SelfQueueEntry_set = new SelfQueueEntrySetImpl();
R2949_monitors_Monitor_set = new MonitorSetImpl();
R2955_is_verifying_instance_of_C_C_inst = C_CImpl.EMPTY_C_C;
R2957_creates_I_INS_set = new I_INSSetImpl();
R2963_is_verifying_instance_of_ComponentReference_inst = ComponentReferenceImpl.EMPTY_COMPONENTREFERENCE;
R2964_houses_PendingEvent_set = new PendingEventSetImpl();
R2968_is_interface_provider_to_RuntimeChannel_set = new RuntimeChannelSetImpl();
R2968_is_interface_requirer_of_RuntimeChannel_set = new RuntimeChannelSetImpl();
R2970_is_verifying_EP_PKG_inst = EP_PKGImpl.EMPTY_EP_PKG;
R2974_ComponentInstanceContainer_inst = ComponentInstanceContainerImpl.EMPTY_COMPONENTINSTANCECONTAINER;
R2975_ComponentInstanceContainer_inst = ComponentInstanceContainerImpl.EMPTY_COMPONENTINSTANCECONTAINER;
R2976_sends_PendingEvent_set = new PendingEventSetImpl();
R2977_IntercomponentQueueEntry_set = new IntercomponentQueueEntrySetImpl();
}
public static ComponentInstance create( Sql context ) throws XtumlException {
ComponentInstance newComponentInstance = new ComponentInstanceImpl( context );
if ( context.addInstance( newComponentInstance ) ) {
newComponentInstance.getRunContext().addChange(new InstanceCreatedDelta(newComponentInstance, KEY_LETTERS));
return newComponentInstance;
}
else throw new InstancePopulationException( "Instance already exists within this population." );
}
public static ComponentInstance create( Sql context, boolean m_Running, UniqueId m_Execution_Engine_ID, UniqueId m_Dom_IDdeprecated, UniqueId ref_Component_Id, UniqueId ref_Package_ID, int m_Next_Unique_ID, int m_Next_Instance_ID, UniqueId ref_ImportedComponent_Id, String m_Label, ReentrantLock m_EQE_Lock, ReentrantLock m_SQE_Lock, UniqueId ref_Container_ID, Instance m_RealizedBy ) throws XtumlException {
return create(context, UniqueId.random(), m_Running, m_Execution_Engine_ID, m_Dom_IDdeprecated, ref_Component_Id, ref_Package_ID, m_Next_Unique_ID, m_Next_Instance_ID, ref_ImportedComponent_Id, m_Label, m_EQE_Lock, m_SQE_Lock, ref_Container_ID, m_RealizedBy);
}
public static ComponentInstance create( Sql context, UniqueId instanceId, boolean m_Running, UniqueId m_Execution_Engine_ID, UniqueId m_Dom_IDdeprecated, UniqueId ref_Component_Id, UniqueId ref_Package_ID, int m_Next_Unique_ID, int m_Next_Instance_ID, UniqueId ref_ImportedComponent_Id, String m_Label, ReentrantLock m_EQE_Lock, ReentrantLock m_SQE_Lock, UniqueId ref_Container_ID, Instance m_RealizedBy ) throws XtumlException {
ComponentInstance newComponentInstance = new ComponentInstanceImpl( context, instanceId, m_Running, m_Execution_Engine_ID, m_Dom_IDdeprecated, ref_Component_Id, ref_Package_ID, m_Next_Unique_ID, m_Next_Instance_ID, ref_ImportedComponent_Id, m_Label, m_EQE_Lock, m_SQE_Lock, ref_Container_ID, m_RealizedBy );
if ( context.addInstance( newComponentInstance ) ) {
return newComponentInstance;
}
else throw new InstancePopulationException( "Instance already exists within this population." );
}
// attributes
private boolean m_Running;
@Override
public boolean getRunning() throws XtumlException {
checkLiving();
return m_Running;
}
@Override
public void setRunning(boolean m_Running) throws XtumlException {
checkLiving();
if (m_Running != this.m_Running) {
final boolean oldValue = this.m_Running;
this.m_Running = m_Running;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Running", oldValue, this.m_Running));
}
}
private UniqueId m_Execution_Engine_ID;
@Override
public UniqueId getExecution_Engine_ID() throws XtumlException {
checkLiving();
return m_Execution_Engine_ID;
}
@Override
public void setExecution_Engine_ID(UniqueId m_Execution_Engine_ID) throws XtumlException {
checkLiving();
if (m_Execution_Engine_ID.inequality( this.m_Execution_Engine_ID)) {
final UniqueId oldValue = this.m_Execution_Engine_ID;
this.m_Execution_Engine_ID = m_Execution_Engine_ID;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Execution_Engine_ID", oldValue, this.m_Execution_Engine_ID));
if ( !R2974_ComponentInstanceContainer().isEmpty() ) R2974_ComponentInstanceContainer().setContainer_ID( m_Execution_Engine_ID );
if ( !R2964_houses_PendingEvent().isEmpty() ) R2964_houses_PendingEvent().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2957_creates_I_INS().isEmpty() ) R2957_creates_I_INS().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2968_is_interface_requirer_of_RuntimeChannel().isEmpty() ) R2968_is_interface_requirer_of_RuntimeChannel().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2968_is_interface_provider_to_RuntimeChannel().isEmpty() ) R2968_is_interface_provider_to_RuntimeChannel().setOther_Execution_Engine_ID( m_Execution_Engine_ID );
if ( !R2930_controls_Stack().isEmpty() ) R2930_controls_Stack().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2944_EventQueueEntry().isEmpty() ) R2944_EventQueueEntry().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2949_monitors_Monitor().isEmpty() ) R2949_monitors_Monitor().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2976_sends_PendingEvent().isEmpty() ) R2976_sends_PendingEvent().setOriginating_Execution_Engine_ID( m_Execution_Engine_ID );
if ( !R2977_IntercomponentQueueEntry().isEmpty() ) R2977_IntercomponentQueueEntry().setExecution_Engine_ID( m_Execution_Engine_ID );
if ( !R2946_SelfQueueEntry().isEmpty() ) R2946_SelfQueueEntry().setExecution_Engine_ID( m_Execution_Engine_ID );
}
}
private UniqueId m_Dom_IDdeprecated;
@Override
public UniqueId getDom_IDdeprecated() throws XtumlException {
checkLiving();
return m_Dom_IDdeprecated;
}
@Override
public void setDom_IDdeprecated(UniqueId m_Dom_IDdeprecated) throws XtumlException {
checkLiving();
if (m_Dom_IDdeprecated.inequality( this.m_Dom_IDdeprecated)) {
final UniqueId oldValue = this.m_Dom_IDdeprecated;
this.m_Dom_IDdeprecated = m_Dom_IDdeprecated;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Dom_IDdeprecated", oldValue, this.m_Dom_IDdeprecated));
}
}
private UniqueId ref_Component_Id;
@Override
public void setComponent_Id(UniqueId ref_Component_Id) throws XtumlException {
checkLiving();
if (ref_Component_Id.inequality( this.ref_Component_Id)) {
final UniqueId oldValue = this.ref_Component_Id;
this.ref_Component_Id = ref_Component_Id;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_Component_Id", oldValue, this.ref_Component_Id));
}
}
@Override
public UniqueId getComponent_Id() throws XtumlException {
checkLiving();
return ref_Component_Id;
}
private UniqueId ref_Package_ID;
@Override
public void setPackage_ID(UniqueId ref_Package_ID) throws XtumlException {
checkLiving();
if (ref_Package_ID.inequality( this.ref_Package_ID)) {
final UniqueId oldValue = this.ref_Package_ID;
this.ref_Package_ID = ref_Package_ID;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_Package_ID", oldValue, this.ref_Package_ID));
}
}
@Override
public UniqueId getPackage_ID() throws XtumlException {
checkLiving();
return ref_Package_ID;
}
private int m_Next_Unique_ID;
@Override
public void setNext_Unique_ID(int m_Next_Unique_ID) throws XtumlException {
checkLiving();
if (m_Next_Unique_ID != this.m_Next_Unique_ID) {
final int oldValue = this.m_Next_Unique_ID;
this.m_Next_Unique_ID = m_Next_Unique_ID;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Next_Unique_ID", oldValue, this.m_Next_Unique_ID));
}
}
@Override
public int getNext_Unique_ID() throws XtumlException {
checkLiving();
return m_Next_Unique_ID;
}
private int m_Next_Instance_ID;
@Override
public int getNext_Instance_ID() throws XtumlException {
checkLiving();
return m_Next_Instance_ID;
}
@Override
public void setNext_Instance_ID(int m_Next_Instance_ID) throws XtumlException {
checkLiving();
if (m_Next_Instance_ID != this.m_Next_Instance_ID) {
final int oldValue = this.m_Next_Instance_ID;
this.m_Next_Instance_ID = m_Next_Instance_ID;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Next_Instance_ID", oldValue, this.m_Next_Instance_ID));
}
}
private UniqueId ref_ImportedComponent_Id;
@Override
public void setImportedComponent_Id(UniqueId ref_ImportedComponent_Id) throws XtumlException {
checkLiving();
if (ref_ImportedComponent_Id.inequality( this.ref_ImportedComponent_Id)) {
final UniqueId oldValue = this.ref_ImportedComponent_Id;
this.ref_ImportedComponent_Id = ref_ImportedComponent_Id;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_ImportedComponent_Id", oldValue, this.ref_ImportedComponent_Id));
}
}
@Override
public UniqueId getImportedComponent_Id() throws XtumlException {
checkLiving();
return ref_ImportedComponent_Id;
}
private String m_Label;
@Override
public void setLabel(String m_Label) throws XtumlException {
checkLiving();
if (StringUtil.inequality(m_Label, this.m_Label)) {
final String oldValue = this.m_Label;
this.m_Label = m_Label;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Label", oldValue, this.m_Label));
}
}
@Override
public String getLabel() throws XtumlException {
checkLiving();
return m_Label;
}
private ReentrantLock m_EQE_Lock;
@Override
public void setEQE_Lock(ReentrantLock m_EQE_Lock) throws XtumlException {
checkLiving();
if (m_EQE_Lock.inequality( this.m_EQE_Lock)) {
final ReentrantLock oldValue = this.m_EQE_Lock;
this.m_EQE_Lock = m_EQE_Lock;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_EQE_Lock", oldValue, this.m_EQE_Lock));
}
}
@Override
public ReentrantLock getEQE_Lock() throws XtumlException {
checkLiving();
return m_EQE_Lock;
}
private ReentrantLock m_SQE_Lock;
@Override
public ReentrantLock getSQE_Lock() throws XtumlException {
checkLiving();
return m_SQE_Lock;
}
@Override
public void setSQE_Lock(ReentrantLock m_SQE_Lock) throws XtumlException {
checkLiving();
if (m_SQE_Lock.inequality( this.m_SQE_Lock)) {
final ReentrantLock oldValue = this.m_SQE_Lock;
this.m_SQE_Lock = m_SQE_Lock;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_SQE_Lock", oldValue, this.m_SQE_Lock));
}
}
private UniqueId ref_Container_ID;
@Override
public void setContainer_ID(UniqueId ref_Container_ID) throws XtumlException {
checkLiving();
if (ref_Container_ID.inequality( this.ref_Container_ID)) {
final UniqueId oldValue = this.ref_Container_ID;
this.ref_Container_ID = ref_Container_ID;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_Container_ID", oldValue, this.ref_Container_ID));
}
}
@Override
public UniqueId getContainer_ID() throws XtumlException {
checkLiving();
return ref_Container_ID;
}
private Instance m_RealizedBy;
@Override
public void setRealizedBy(Instance m_RealizedBy) throws XtumlException {
checkLiving();
if (m_RealizedBy.inequality( this.m_RealizedBy)) {
final Instance oldValue = this.m_RealizedBy;
this.m_RealizedBy = m_RealizedBy;
getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_RealizedBy", oldValue, this.m_RealizedBy));
}
}
@Override
public Instance getRealizedBy() throws XtumlException {
checkLiving();
return m_RealizedBy;
}
// instance identifiers
@Override
public IInstanceIdentifier getId1() {
try {
return new InstanceIdentifier(getExecution_Engine_ID());
}
catch ( XtumlException e ) {
getRunContext().getLog().error(e);
System.exit(1);
return null;
}
}
// operations
// static operations
// events
// selections
private Stack R2930_controls_Stack_inst;
@Override
public void setR2930_controls_Stack( Stack inst ) {
R2930_controls_Stack_inst = inst;
}
@Override
public Stack R2930_controls_Stack() throws XtumlException {
return R2930_controls_Stack_inst;
}
private EventQueueEntrySet R2944_EventQueueEntry_set;
@Override
public void addR2944_EventQueueEntry( EventQueueEntry inst ) {
R2944_EventQueueEntry_set.add(inst);
}
@Override
public void removeR2944_EventQueueEntry( EventQueueEntry inst ) {
R2944_EventQueueEntry_set.remove(inst);
}
@Override
public EventQueueEntrySet R2944_EventQueueEntry() throws XtumlException {
return R2944_EventQueueEntry_set;
}
private SelfQueueEntrySet R2946_SelfQueueEntry_set;
@Override
public void addR2946_SelfQueueEntry( SelfQueueEntry inst ) {
R2946_SelfQueueEntry_set.add(inst);
}
@Override
public void removeR2946_SelfQueueEntry( SelfQueueEntry inst ) {
R2946_SelfQueueEntry_set.remove(inst);
}
@Override
public SelfQueueEntrySet R2946_SelfQueueEntry() throws XtumlException {
return R2946_SelfQueueEntry_set;
}
private MonitorSet R2949_monitors_Monitor_set;
@Override
public void addR2949_monitors_Monitor( Monitor inst ) {
R2949_monitors_Monitor_set.add(inst);
}
@Override
public void removeR2949_monitors_Monitor( Monitor inst ) {
R2949_monitors_Monitor_set.remove(inst);
}
@Override
public MonitorSet R2949_monitors_Monitor() throws XtumlException {
return R2949_monitors_Monitor_set;
}
private C_C R2955_is_verifying_instance_of_C_C_inst;
@Override
public void setR2955_is_verifying_instance_of_C_C( C_C inst ) {
R2955_is_verifying_instance_of_C_C_inst = inst;
}
@Override
public C_C R2955_is_verifying_instance_of_C_C() throws XtumlException {
return R2955_is_verifying_instance_of_C_C_inst;
}
private I_INSSet R2957_creates_I_INS_set;
@Override
public void addR2957_creates_I_INS( I_INS inst ) {
R2957_creates_I_INS_set.add(inst);
}
@Override
public void removeR2957_creates_I_INS( I_INS inst ) {
R2957_creates_I_INS_set.remove(inst);
}
@Override
public I_INSSet R2957_creates_I_INS() throws XtumlException {
return R2957_creates_I_INS_set;
}
private ComponentReference R2963_is_verifying_instance_of_ComponentReference_inst;
@Override
public void setR2963_is_verifying_instance_of_ComponentReference( ComponentReference inst ) {
R2963_is_verifying_instance_of_ComponentReference_inst = inst;
}
@Override
public ComponentReference R2963_is_verifying_instance_of_ComponentReference() throws XtumlException {
return R2963_is_verifying_instance_of_ComponentReference_inst;
}
private PendingEventSet R2964_houses_PendingEvent_set;
@Override
public void addR2964_houses_PendingEvent( PendingEvent inst ) {
R2964_houses_PendingEvent_set.add(inst);
}
@Override
public void removeR2964_houses_PendingEvent( PendingEvent inst ) {
R2964_houses_PendingEvent_set.remove(inst);
}
@Override
public PendingEventSet R2964_houses_PendingEvent() throws XtumlException {
return R2964_houses_PendingEvent_set;
}
private RuntimeChannelSet R2968_is_interface_provider_to_RuntimeChannel_set;
@Override
public void addR2968_is_interface_provider_to_RuntimeChannel( RuntimeChannel inst ) {
R2968_is_interface_provider_to_RuntimeChannel_set.add(inst);
}
@Override
public void removeR2968_is_interface_provider_to_RuntimeChannel( RuntimeChannel inst ) {
R2968_is_interface_provider_to_RuntimeChannel_set.remove(inst);
}
@Override
public RuntimeChannelSet R2968_is_interface_provider_to_RuntimeChannel() throws XtumlException {
return R2968_is_interface_provider_to_RuntimeChannel_set;
}
private RuntimeChannelSet R2968_is_interface_requirer_of_RuntimeChannel_set;
@Override
public void addR2968_is_interface_requirer_of_RuntimeChannel( RuntimeChannel inst ) {
R2968_is_interface_requirer_of_RuntimeChannel_set.add(inst);
}
@Override
public void removeR2968_is_interface_requirer_of_RuntimeChannel( RuntimeChannel inst ) {
R2968_is_interface_requirer_of_RuntimeChannel_set.remove(inst);
}
@Override
public RuntimeChannelSet R2968_is_interface_requirer_of_RuntimeChannel() throws XtumlException {
return R2968_is_interface_requirer_of_RuntimeChannel_set;
}
private EP_PKG R2970_is_verifying_EP_PKG_inst;
@Override
public void setR2970_is_verifying_EP_PKG( EP_PKG inst ) {
R2970_is_verifying_EP_PKG_inst = inst;
}
@Override
public EP_PKG R2970_is_verifying_EP_PKG() throws XtumlException {
return R2970_is_verifying_EP_PKG_inst;
}
private ComponentInstanceContainer R2974_ComponentInstanceContainer_inst;
@Override
public void setR2974_ComponentInstanceContainer( ComponentInstanceContainer inst ) {
R2974_ComponentInstanceContainer_inst = inst;
}
@Override
public ComponentInstanceContainer R2974_ComponentInstanceContainer() throws XtumlException {
return R2974_ComponentInstanceContainer_inst;
}
private ComponentInstanceContainer R2975_ComponentInstanceContainer_inst;
@Override
public void setR2975_ComponentInstanceContainer( ComponentInstanceContainer inst ) {
R2975_ComponentInstanceContainer_inst = inst;
}
@Override
public ComponentInstanceContainer R2975_ComponentInstanceContainer() throws XtumlException {
return R2975_ComponentInstanceContainer_inst;
}
private PendingEventSet R2976_sends_PendingEvent_set;
@Override
public void addR2976_sends_PendingEvent( PendingEvent inst ) {
R2976_sends_PendingEvent_set.add(inst);
}
@Override
public void removeR2976_sends_PendingEvent( PendingEvent inst ) {
R2976_sends_PendingEvent_set.remove(inst);
}
@Override
public PendingEventSet R2976_sends_PendingEvent() throws XtumlException {
return R2976_sends_PendingEvent_set;
}
private IntercomponentQueueEntrySet R2977_IntercomponentQueueEntry_set;
@Override
public void addR2977_IntercomponentQueueEntry( IntercomponentQueueEntry inst ) {
R2977_IntercomponentQueueEntry_set.add(inst);
}
@Override
public void removeR2977_IntercomponentQueueEntry( IntercomponentQueueEntry inst ) {
R2977_IntercomponentQueueEntry_set.remove(inst);
}
@Override
public IntercomponentQueueEntrySet R2977_IntercomponentQueueEntry() throws XtumlException {
return R2977_IntercomponentQueueEntry_set;
}
@Override
public IRunContext getRunContext() {
return context().getRunContext();
}
@Override
public Sql context() {
return context;
}
@Override
public String getKeyLetters() {
return KEY_LETTERS;
}
@Override
public ComponentInstance self() {
return this;
}
@Override
public ComponentInstance oneWhere(IWhere condition) throws XtumlException {
if (null == condition) throw new XtumlException("Null condition passed to selection.");
if (condition.evaluate(this)) return this;
else return EMPTY_COMPONENTINSTANCE;
}
}
class EmptyComponentInstance extends ModelInstance implements ComponentInstance {
// attributes
public boolean getRunning() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setRunning( boolean m_Running ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public UniqueId getExecution_Engine_ID() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setExecution_Engine_ID( UniqueId m_Execution_Engine_ID ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public UniqueId getDom_IDdeprecated() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setDom_IDdeprecated( UniqueId m_Dom_IDdeprecated ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public void setComponent_Id( UniqueId ref_Component_Id ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public UniqueId getComponent_Id() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setPackage_ID( UniqueId ref_Package_ID ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public UniqueId getPackage_ID() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setNext_Unique_ID( int m_Next_Unique_ID ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public int getNext_Unique_ID() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public int getNext_Instance_ID() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setNext_Instance_ID( int m_Next_Instance_ID ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public void setImportedComponent_Id( UniqueId ref_ImportedComponent_Id ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public UniqueId getImportedComponent_Id() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setLabel( String m_Label ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public String getLabel() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setEQE_Lock( ReentrantLock m_EQE_Lock ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public ReentrantLock getEQE_Lock() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public ReentrantLock getSQE_Lock() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setSQE_Lock( ReentrantLock m_SQE_Lock ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public void setContainer_ID( UniqueId ref_Container_ID ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public UniqueId getContainer_ID() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
public void setRealizedBy( Instance m_RealizedBy ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
public Instance getRealizedBy() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
// operations
// selections
@Override
public Stack R2930_controls_Stack() {
return StackImpl.EMPTY_STACK;
}
@Override
public EventQueueEntrySet R2944_EventQueueEntry() {
return (new EventQueueEntrySetImpl());
}
@Override
public SelfQueueEntrySet R2946_SelfQueueEntry() {
return (new SelfQueueEntrySetImpl());
}
@Override
public MonitorSet R2949_monitors_Monitor() {
return (new MonitorSetImpl());
}
@Override
public C_C R2955_is_verifying_instance_of_C_C() {
return C_CImpl.EMPTY_C_C;
}
@Override
public I_INSSet R2957_creates_I_INS() {
return (new I_INSSetImpl());
}
@Override
public ComponentReference R2963_is_verifying_instance_of_ComponentReference() {
return ComponentReferenceImpl.EMPTY_COMPONENTREFERENCE;
}
@Override
public PendingEventSet R2964_houses_PendingEvent() {
return (new PendingEventSetImpl());
}
@Override
public RuntimeChannelSet R2968_is_interface_provider_to_RuntimeChannel() {
return (new RuntimeChannelSetImpl());
}
@Override
public RuntimeChannelSet R2968_is_interface_requirer_of_RuntimeChannel() {
return (new RuntimeChannelSetImpl());
}
@Override
public EP_PKG R2970_is_verifying_EP_PKG() {
return EP_PKGImpl.EMPTY_EP_PKG;
}
@Override
public ComponentInstanceContainer R2974_ComponentInstanceContainer() {
return ComponentInstanceContainerImpl.EMPTY_COMPONENTINSTANCECONTAINER;
}
@Override
public ComponentInstanceContainer R2975_ComponentInstanceContainer() {
return ComponentInstanceContainerImpl.EMPTY_COMPONENTINSTANCECONTAINER;
}
@Override
public PendingEventSet R2976_sends_PendingEvent() {
return (new PendingEventSetImpl());
}
@Override
public IntercomponentQueueEntrySet R2977_IntercomponentQueueEntry() {
return (new IntercomponentQueueEntrySetImpl());
}
@Override
public String getKeyLetters() {
return ComponentInstanceImpl.KEY_LETTERS;
}
@Override
public ComponentInstance self() {
return this;
}
@Override
public boolean isEmpty() {
return true;
}
@Override
public ComponentInstance oneWhere(IWhere condition) throws XtumlException {
if (null == condition) throw new XtumlException("Null condition passed to selection.");
return ComponentInstanceImpl.EMPTY_COMPONENTINSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy