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

io.ciera.tool.sql.ooaofooa.body.impl.BodyImpl Maven / Gradle / Ivy

package io.ciera.tool.sql.ooaofooa.body.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.architecture.invocable.InvocableObject;
import io.ciera.tool.sql.architecture.invocable.impl.InvocableObjectImpl;
import io.ciera.tool.sql.ooaofooa.body.Block;
import io.ciera.tool.sql.ooaofooa.body.BlockSet;
import io.ciera.tool.sql.ooaofooa.body.Body;
import io.ciera.tool.sql.ooaofooa.body.BodyInComponent;
import io.ciera.tool.sql.ooaofooa.body.BodyInElement;
import io.ciera.tool.sql.ooaofooa.body.BridgeBody;
import io.ciera.tool.sql.ooaofooa.body.DerivedAttributeBody;
import io.ciera.tool.sql.ooaofooa.body.FunctionBody;
import io.ciera.tool.sql.ooaofooa.body.OperationBody;
import io.ciera.tool.sql.ooaofooa.body.ProvidedOperationBody;
import io.ciera.tool.sql.ooaofooa.body.ProvidedSignalBody;
import io.ciera.tool.sql.ooaofooa.body.RequiredOperationBody;
import io.ciera.tool.sql.ooaofooa.body.RequiredSignalBody;
import io.ciera.tool.sql.ooaofooa.body.StateActionBody;
import io.ciera.tool.sql.ooaofooa.body.TransitionActionBody;
import io.ciera.tool.sql.ooaofooa.body.impl.BlockImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.BlockSetImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.BodyInComponentImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.BodyInElementImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.BridgeBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.DerivedAttributeBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.FunctionBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.OperationBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.ProvidedOperationBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.ProvidedSignalBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.RequiredOperationBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.RequiredSignalBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.StateActionBodyImpl;
import io.ciera.tool.sql.ooaofooa.body.impl.TransitionActionBodyImpl;

import ooaofooa.datatypes.Instance;


public class BodyImpl extends ModelInstance implements Body {

    public static final String KEY_LETTERS = "ACT_ACT";
    public static final Body EMPTY_BODY = new EmptyBody();

    private Sql context;

    // constructors
    private BodyImpl( Sql context ) {
        this.context = context;
        m_Action_ID = UniqueId.random();
        m_Type = "";
        m_LoopLevel = 0;
        ref_Block_ID = UniqueId.random();
        ref_CurrentScope_ID = UniqueId.random();
        m_return_value = new Instance();
        m_Label = "";
        ref_Parsed_Block_ID = UniqueId.random();
        m_ReturnFound = false;
        R432_InvocableObject_inst = InvocableObjectImpl.EMPTY_INVOCABLEOBJECT;
        R601_has_committed_Block_set = new BlockSetImpl();
        R612_has_parsed_Block_set = new BlockSetImpl();
        R640_is_declared_in_BodyInElement_inst = BodyInElementImpl.EMPTY_BODYINELEMENT;
        R650_has_parsed_outer_Block_inst = BlockImpl.EMPTY_BLOCK;
        R666_has_committed_outer_Block_inst = BlockImpl.EMPTY_BLOCK;
        R694_is_declared_in_BodyInComponent_inst = BodyInComponentImpl.EMPTY_BODYINCOMPONENT;
        R698_is_a_BridgeBody_inst = BridgeBodyImpl.EMPTY_BRIDGEBODY;
        R698_is_a_DerivedAttributeBody_inst = DerivedAttributeBodyImpl.EMPTY_DERIVEDATTRIBUTEBODY;
        R698_is_a_FunctionBody_inst = FunctionBodyImpl.EMPTY_FUNCTIONBODY;
        R698_is_a_OperationBody_inst = OperationBodyImpl.EMPTY_OPERATIONBODY;
        R698_is_a_ProvidedOperationBody_inst = ProvidedOperationBodyImpl.EMPTY_PROVIDEDOPERATIONBODY;
        R698_is_a_ProvidedSignalBody_inst = ProvidedSignalBodyImpl.EMPTY_PROVIDEDSIGNALBODY;
        R698_is_a_RequiredOperationBody_inst = RequiredOperationBodyImpl.EMPTY_REQUIREDOPERATIONBODY;
        R698_is_a_RequiredSignalBody_inst = RequiredSignalBodyImpl.EMPTY_REQUIREDSIGNALBODY;
        R698_is_a_StateActionBody_inst = StateActionBodyImpl.EMPTY_STATEACTIONBODY;
        R698_is_a_TransitionActionBody_inst = TransitionActionBodyImpl.EMPTY_TRANSITIONACTIONBODY;
        R699_has_current_scope_Block_inst = BlockImpl.EMPTY_BLOCK;
    }

    private BodyImpl( Sql context, UniqueId instanceId, UniqueId m_Action_ID, String m_Type, int m_LoopLevel, UniqueId ref_Block_ID, UniqueId ref_CurrentScope_ID, Instance m_return_value, String m_Label, UniqueId ref_Parsed_Block_ID, boolean m_ReturnFound ) {
        super(instanceId);
        this.context = context;
        this.m_Action_ID = m_Action_ID;
        this.m_Type = m_Type;
        this.m_LoopLevel = m_LoopLevel;
        this.ref_Block_ID = ref_Block_ID;
        this.ref_CurrentScope_ID = ref_CurrentScope_ID;
        this.m_return_value = m_return_value;
        this.m_Label = m_Label;
        this.ref_Parsed_Block_ID = ref_Parsed_Block_ID;
        this.m_ReturnFound = m_ReturnFound;
        R432_InvocableObject_inst = InvocableObjectImpl.EMPTY_INVOCABLEOBJECT;
        R601_has_committed_Block_set = new BlockSetImpl();
        R612_has_parsed_Block_set = new BlockSetImpl();
        R640_is_declared_in_BodyInElement_inst = BodyInElementImpl.EMPTY_BODYINELEMENT;
        R650_has_parsed_outer_Block_inst = BlockImpl.EMPTY_BLOCK;
        R666_has_committed_outer_Block_inst = BlockImpl.EMPTY_BLOCK;
        R694_is_declared_in_BodyInComponent_inst = BodyInComponentImpl.EMPTY_BODYINCOMPONENT;
        R698_is_a_BridgeBody_inst = BridgeBodyImpl.EMPTY_BRIDGEBODY;
        R698_is_a_DerivedAttributeBody_inst = DerivedAttributeBodyImpl.EMPTY_DERIVEDATTRIBUTEBODY;
        R698_is_a_FunctionBody_inst = FunctionBodyImpl.EMPTY_FUNCTIONBODY;
        R698_is_a_OperationBody_inst = OperationBodyImpl.EMPTY_OPERATIONBODY;
        R698_is_a_ProvidedOperationBody_inst = ProvidedOperationBodyImpl.EMPTY_PROVIDEDOPERATIONBODY;
        R698_is_a_ProvidedSignalBody_inst = ProvidedSignalBodyImpl.EMPTY_PROVIDEDSIGNALBODY;
        R698_is_a_RequiredOperationBody_inst = RequiredOperationBodyImpl.EMPTY_REQUIREDOPERATIONBODY;
        R698_is_a_RequiredSignalBody_inst = RequiredSignalBodyImpl.EMPTY_REQUIREDSIGNALBODY;
        R698_is_a_StateActionBody_inst = StateActionBodyImpl.EMPTY_STATEACTIONBODY;
        R698_is_a_TransitionActionBody_inst = TransitionActionBodyImpl.EMPTY_TRANSITIONACTIONBODY;
        R699_has_current_scope_Block_inst = BlockImpl.EMPTY_BLOCK;
    }

    public static Body create( Sql context ) throws XtumlException {
        Body newBody = new BodyImpl( context );
        if ( context.addInstance( newBody ) ) {
            newBody.getRunContext().addChange(new InstanceCreatedDelta(newBody, KEY_LETTERS));
            return newBody;
        }
        else throw new InstancePopulationException( "Instance already exists within this population." );
    }

    public static Body create( Sql context, UniqueId m_Action_ID, String m_Type, int m_LoopLevel, UniqueId ref_Block_ID, UniqueId ref_CurrentScope_ID, Instance m_return_value, String m_Label, UniqueId ref_Parsed_Block_ID, boolean m_ReturnFound ) throws XtumlException {
        return create(context, UniqueId.random(), m_Action_ID, m_Type, m_LoopLevel, ref_Block_ID, ref_CurrentScope_ID, m_return_value, m_Label, ref_Parsed_Block_ID, m_ReturnFound);
    }

    public static Body create( Sql context, UniqueId instanceId, UniqueId m_Action_ID, String m_Type, int m_LoopLevel, UniqueId ref_Block_ID, UniqueId ref_CurrentScope_ID, Instance m_return_value, String m_Label, UniqueId ref_Parsed_Block_ID, boolean m_ReturnFound ) throws XtumlException {
        Body newBody = new BodyImpl( context, instanceId, m_Action_ID, m_Type, m_LoopLevel, ref_Block_ID, ref_CurrentScope_ID, m_return_value, m_Label, ref_Parsed_Block_ID, m_ReturnFound );
        if ( context.addInstance( newBody ) ) {
            return newBody;
        }
        else throw new InstancePopulationException( "Instance already exists within this population." );
    }



    // attributes
    private UniqueId m_Action_ID;
    @Override
    public void setAction_ID(UniqueId m_Action_ID) throws XtumlException {
        checkLiving();
        if (m_Action_ID.inequality( this.m_Action_ID)) {
            final UniqueId oldValue = this.m_Action_ID;
            this.m_Action_ID = m_Action_ID;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Action_ID", oldValue, this.m_Action_ID));
            if ( !R698_is_a_OperationBody().isEmpty() ) R698_is_a_OperationBody().setAction_ID( m_Action_ID );
            if ( !R640_is_declared_in_BodyInElement().isEmpty() ) R640_is_declared_in_BodyInElement().setAction_ID( m_Action_ID );
            if ( !R698_is_a_ProvidedSignalBody().isEmpty() ) R698_is_a_ProvidedSignalBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_FunctionBody().isEmpty() ) R698_is_a_FunctionBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_StateActionBody().isEmpty() ) R698_is_a_StateActionBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_ProvidedOperationBody().isEmpty() ) R698_is_a_ProvidedOperationBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_RequiredOperationBody().isEmpty() ) R698_is_a_RequiredOperationBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_DerivedAttributeBody().isEmpty() ) R698_is_a_DerivedAttributeBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_RequiredSignalBody().isEmpty() ) R698_is_a_RequiredSignalBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_BridgeBody().isEmpty() ) R698_is_a_BridgeBody().setAction_ID( m_Action_ID );
            if ( !R698_is_a_TransitionActionBody().isEmpty() ) R698_is_a_TransitionActionBody().setAction_ID( m_Action_ID );
            if ( !R601_has_committed_Block().isEmpty() ) R601_has_committed_Block().setAction_ID( m_Action_ID );
            if ( !R612_has_parsed_Block().isEmpty() ) R612_has_parsed_Block().setParsed_Action_ID( m_Action_ID );
            if ( !R694_is_declared_in_BodyInComponent().isEmpty() ) R694_is_declared_in_BodyInComponent().setAction_ID( m_Action_ID );
        }
    }
    @Override
    public UniqueId getAction_ID() throws XtumlException {
        checkLiving();
        return m_Action_ID;
    }
    private String m_Type;
    @Override
    public String getType() throws XtumlException {
        checkLiving();
        return m_Type;
    }
    @Override
    public void setType(String m_Type) throws XtumlException {
        checkLiving();
        if (StringUtil.inequality(m_Type, this.m_Type)) {
            final String oldValue = this.m_Type;
            this.m_Type = m_Type;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_Type", oldValue, this.m_Type));
        }
    }
    private int m_LoopLevel;
    @Override
    public void setLoopLevel(int m_LoopLevel) throws XtumlException {
        checkLiving();
        if (m_LoopLevel != this.m_LoopLevel) {
            final int oldValue = this.m_LoopLevel;
            this.m_LoopLevel = m_LoopLevel;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_LoopLevel", oldValue, this.m_LoopLevel));
        }
    }
    @Override
    public int getLoopLevel() throws XtumlException {
        checkLiving();
        return m_LoopLevel;
    }
    private UniqueId ref_Block_ID;
    @Override
    public UniqueId getBlock_ID() throws XtumlException {
        checkLiving();
        return ref_Block_ID;
    }
    @Override
    public void setBlock_ID(UniqueId ref_Block_ID) throws XtumlException {
        checkLiving();
        if (ref_Block_ID.inequality( this.ref_Block_ID)) {
            final UniqueId oldValue = this.ref_Block_ID;
            this.ref_Block_ID = ref_Block_ID;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_Block_ID", oldValue, this.ref_Block_ID));
        }
    }
    private UniqueId ref_CurrentScope_ID;
    @Override
    public UniqueId getCurrentScope_ID() throws XtumlException {
        checkLiving();
        return ref_CurrentScope_ID;
    }
    @Override
    public void setCurrentScope_ID(UniqueId ref_CurrentScope_ID) throws XtumlException {
        checkLiving();
        if (ref_CurrentScope_ID.inequality( this.ref_CurrentScope_ID)) {
            final UniqueId oldValue = this.ref_CurrentScope_ID;
            this.ref_CurrentScope_ID = ref_CurrentScope_ID;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_CurrentScope_ID", oldValue, this.ref_CurrentScope_ID));
        }
    }
    private Instance m_return_value;
    @Override
    public Instance getReturn_value() throws XtumlException {
        checkLiving();
        return m_return_value;
    }
    @Override
    public void setReturn_value(Instance m_return_value) throws XtumlException {
        checkLiving();
        if (m_return_value.inequality( this.m_return_value)) {
            final Instance oldValue = this.m_return_value;
            this.m_return_value = m_return_value;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_return_value", oldValue, this.m_return_value));
        }
    }
    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 UniqueId ref_Parsed_Block_ID;
    @Override
    public void setParsed_Block_ID(UniqueId ref_Parsed_Block_ID) throws XtumlException {
        checkLiving();
        if (ref_Parsed_Block_ID.inequality( this.ref_Parsed_Block_ID)) {
            final UniqueId oldValue = this.ref_Parsed_Block_ID;
            this.ref_Parsed_Block_ID = ref_Parsed_Block_ID;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "ref_Parsed_Block_ID", oldValue, this.ref_Parsed_Block_ID));
        }
    }
    @Override
    public UniqueId getParsed_Block_ID() throws XtumlException {
        checkLiving();
        return ref_Parsed_Block_ID;
    }
    private boolean m_ReturnFound;
    @Override
    public void setReturnFound(boolean m_ReturnFound) throws XtumlException {
        checkLiving();
        if (m_ReturnFound != this.m_ReturnFound) {
            final boolean oldValue = this.m_ReturnFound;
            this.m_ReturnFound = m_ReturnFound;
            getRunContext().addChange(new AttributeChangedDelta(this, KEY_LETTERS, "m_ReturnFound", oldValue, this.m_ReturnFound));
        }
    }
    @Override
    public boolean getReturnFound() throws XtumlException {
        checkLiving();
        return m_ReturnFound;
    }


    // instance identifiers
    @Override
    public IInstanceIdentifier getId1() {
        try {
            return new InstanceIdentifier(getAction_ID());
        }
        catch ( XtumlException e ) {
            getRunContext().getLog().error(e);
            System.exit(1);
            return null;
        }
    }

    // operations


    // static operations


    // events


    // selections
    private InvocableObject R432_InvocableObject_inst;
    @Override
    public void setR432_InvocableObject( InvocableObject inst ) {
        R432_InvocableObject_inst = inst;
    }
    @Override
    public InvocableObject R432_InvocableObject() throws XtumlException {
        return R432_InvocableObject_inst;
    }
    private BlockSet R601_has_committed_Block_set;
    @Override
    public void addR601_has_committed_Block( Block inst ) {
        R601_has_committed_Block_set.add(inst);
    }
    @Override
    public void removeR601_has_committed_Block( Block inst ) {
        R601_has_committed_Block_set.remove(inst);
    }
    @Override
    public BlockSet R601_has_committed_Block() throws XtumlException {
        return R601_has_committed_Block_set;
    }
    private BlockSet R612_has_parsed_Block_set;
    @Override
    public void addR612_has_parsed_Block( Block inst ) {
        R612_has_parsed_Block_set.add(inst);
    }
    @Override
    public void removeR612_has_parsed_Block( Block inst ) {
        R612_has_parsed_Block_set.remove(inst);
    }
    @Override
    public BlockSet R612_has_parsed_Block() throws XtumlException {
        return R612_has_parsed_Block_set;
    }
    private BodyInElement R640_is_declared_in_BodyInElement_inst;
    @Override
    public void setR640_is_declared_in_BodyInElement( BodyInElement inst ) {
        R640_is_declared_in_BodyInElement_inst = inst;
    }
    @Override
    public BodyInElement R640_is_declared_in_BodyInElement() throws XtumlException {
        return R640_is_declared_in_BodyInElement_inst;
    }
    private Block R650_has_parsed_outer_Block_inst;
    @Override
    public void setR650_has_parsed_outer_Block( Block inst ) {
        R650_has_parsed_outer_Block_inst = inst;
    }
    @Override
    public Block R650_has_parsed_outer_Block() throws XtumlException {
        return R650_has_parsed_outer_Block_inst;
    }
    private Block R666_has_committed_outer_Block_inst;
    @Override
    public void setR666_has_committed_outer_Block( Block inst ) {
        R666_has_committed_outer_Block_inst = inst;
    }
    @Override
    public Block R666_has_committed_outer_Block() throws XtumlException {
        return R666_has_committed_outer_Block_inst;
    }
    private BodyInComponent R694_is_declared_in_BodyInComponent_inst;
    @Override
    public void setR694_is_declared_in_BodyInComponent( BodyInComponent inst ) {
        R694_is_declared_in_BodyInComponent_inst = inst;
    }
    @Override
    public BodyInComponent R694_is_declared_in_BodyInComponent() throws XtumlException {
        return R694_is_declared_in_BodyInComponent_inst;
    }
    private BridgeBody R698_is_a_BridgeBody_inst;
    @Override
    public void setR698_is_a_BridgeBody( BridgeBody inst ) {
        R698_is_a_BridgeBody_inst = inst;
    }
    @Override
    public BridgeBody R698_is_a_BridgeBody() throws XtumlException {
        return R698_is_a_BridgeBody_inst;
    }
    private DerivedAttributeBody R698_is_a_DerivedAttributeBody_inst;
    @Override
    public void setR698_is_a_DerivedAttributeBody( DerivedAttributeBody inst ) {
        R698_is_a_DerivedAttributeBody_inst = inst;
    }
    @Override
    public DerivedAttributeBody R698_is_a_DerivedAttributeBody() throws XtumlException {
        return R698_is_a_DerivedAttributeBody_inst;
    }
    private FunctionBody R698_is_a_FunctionBody_inst;
    @Override
    public void setR698_is_a_FunctionBody( FunctionBody inst ) {
        R698_is_a_FunctionBody_inst = inst;
    }
    @Override
    public FunctionBody R698_is_a_FunctionBody() throws XtumlException {
        return R698_is_a_FunctionBody_inst;
    }
    private OperationBody R698_is_a_OperationBody_inst;
    @Override
    public void setR698_is_a_OperationBody( OperationBody inst ) {
        R698_is_a_OperationBody_inst = inst;
    }
    @Override
    public OperationBody R698_is_a_OperationBody() throws XtumlException {
        return R698_is_a_OperationBody_inst;
    }
    private ProvidedOperationBody R698_is_a_ProvidedOperationBody_inst;
    @Override
    public void setR698_is_a_ProvidedOperationBody( ProvidedOperationBody inst ) {
        R698_is_a_ProvidedOperationBody_inst = inst;
    }
    @Override
    public ProvidedOperationBody R698_is_a_ProvidedOperationBody() throws XtumlException {
        return R698_is_a_ProvidedOperationBody_inst;
    }
    private ProvidedSignalBody R698_is_a_ProvidedSignalBody_inst;
    @Override
    public void setR698_is_a_ProvidedSignalBody( ProvidedSignalBody inst ) {
        R698_is_a_ProvidedSignalBody_inst = inst;
    }
    @Override
    public ProvidedSignalBody R698_is_a_ProvidedSignalBody() throws XtumlException {
        return R698_is_a_ProvidedSignalBody_inst;
    }
    private RequiredOperationBody R698_is_a_RequiredOperationBody_inst;
    @Override
    public void setR698_is_a_RequiredOperationBody( RequiredOperationBody inst ) {
        R698_is_a_RequiredOperationBody_inst = inst;
    }
    @Override
    public RequiredOperationBody R698_is_a_RequiredOperationBody() throws XtumlException {
        return R698_is_a_RequiredOperationBody_inst;
    }
    private RequiredSignalBody R698_is_a_RequiredSignalBody_inst;
    @Override
    public void setR698_is_a_RequiredSignalBody( RequiredSignalBody inst ) {
        R698_is_a_RequiredSignalBody_inst = inst;
    }
    @Override
    public RequiredSignalBody R698_is_a_RequiredSignalBody() throws XtumlException {
        return R698_is_a_RequiredSignalBody_inst;
    }
    private StateActionBody R698_is_a_StateActionBody_inst;
    @Override
    public void setR698_is_a_StateActionBody( StateActionBody inst ) {
        R698_is_a_StateActionBody_inst = inst;
    }
    @Override
    public StateActionBody R698_is_a_StateActionBody() throws XtumlException {
        return R698_is_a_StateActionBody_inst;
    }
    private TransitionActionBody R698_is_a_TransitionActionBody_inst;
    @Override
    public void setR698_is_a_TransitionActionBody( TransitionActionBody inst ) {
        R698_is_a_TransitionActionBody_inst = inst;
    }
    @Override
    public TransitionActionBody R698_is_a_TransitionActionBody() throws XtumlException {
        return R698_is_a_TransitionActionBody_inst;
    }
    private Block R699_has_current_scope_Block_inst;
    @Override
    public void setR699_has_current_scope_Block( Block inst ) {
        R699_has_current_scope_Block_inst = inst;
    }
    @Override
    public Block R699_has_current_scope_Block() throws XtumlException {
        return R699_has_current_scope_Block_inst;
    }


    @Override
    public IRunContext getRunContext() {
        return context().getRunContext();
    }

    @Override
    public Sql context() {
        return context;
    }

    @Override
    public String getKeyLetters() {
        return KEY_LETTERS;
    }

    @Override
    public Body self() {
        return this;
    }

    @Override
    public Body 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_BODY;
    }

}

class EmptyBody extends ModelInstance implements Body {

    // attributes
    public void setAction_ID( UniqueId m_Action_ID ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public UniqueId getAction_ID() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public String getType() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public void setType( String m_Type ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public void setLoopLevel( int m_LoopLevel ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public int getLoopLevel() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public UniqueId getBlock_ID() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public void setBlock_ID( UniqueId ref_Block_ID ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public UniqueId getCurrentScope_ID() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public void setCurrentScope_ID( UniqueId ref_CurrentScope_ID ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public Instance getReturn_value() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public void setReturn_value( Instance m_return_value ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set 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 setParsed_Block_ID( UniqueId ref_Parsed_Block_ID ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public UniqueId getParsed_Block_ID() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }
    public void setReturnFound( boolean m_ReturnFound ) throws XtumlException {
        throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
    }
    public boolean getReturnFound() throws XtumlException {
        throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
    }


    // operations


    // selections
    @Override
    public InvocableObject R432_InvocableObject() {
        return InvocableObjectImpl.EMPTY_INVOCABLEOBJECT;
    }
    @Override
    public BlockSet R601_has_committed_Block() {
        return (new BlockSetImpl());
    }
    @Override
    public BlockSet R612_has_parsed_Block() {
        return (new BlockSetImpl());
    }
    @Override
    public BodyInElement R640_is_declared_in_BodyInElement() {
        return BodyInElementImpl.EMPTY_BODYINELEMENT;
    }
    @Override
    public Block R650_has_parsed_outer_Block() {
        return BlockImpl.EMPTY_BLOCK;
    }
    @Override
    public Block R666_has_committed_outer_Block() {
        return BlockImpl.EMPTY_BLOCK;
    }
    @Override
    public BodyInComponent R694_is_declared_in_BodyInComponent() {
        return BodyInComponentImpl.EMPTY_BODYINCOMPONENT;
    }
    @Override
    public BridgeBody R698_is_a_BridgeBody() {
        return BridgeBodyImpl.EMPTY_BRIDGEBODY;
    }
    @Override
    public DerivedAttributeBody R698_is_a_DerivedAttributeBody() {
        return DerivedAttributeBodyImpl.EMPTY_DERIVEDATTRIBUTEBODY;
    }
    @Override
    public FunctionBody R698_is_a_FunctionBody() {
        return FunctionBodyImpl.EMPTY_FUNCTIONBODY;
    }
    @Override
    public OperationBody R698_is_a_OperationBody() {
        return OperationBodyImpl.EMPTY_OPERATIONBODY;
    }
    @Override
    public ProvidedOperationBody R698_is_a_ProvidedOperationBody() {
        return ProvidedOperationBodyImpl.EMPTY_PROVIDEDOPERATIONBODY;
    }
    @Override
    public ProvidedSignalBody R698_is_a_ProvidedSignalBody() {
        return ProvidedSignalBodyImpl.EMPTY_PROVIDEDSIGNALBODY;
    }
    @Override
    public RequiredOperationBody R698_is_a_RequiredOperationBody() {
        return RequiredOperationBodyImpl.EMPTY_REQUIREDOPERATIONBODY;
    }
    @Override
    public RequiredSignalBody R698_is_a_RequiredSignalBody() {
        return RequiredSignalBodyImpl.EMPTY_REQUIREDSIGNALBODY;
    }
    @Override
    public StateActionBody R698_is_a_StateActionBody() {
        return StateActionBodyImpl.EMPTY_STATEACTIONBODY;
    }
    @Override
    public TransitionActionBody R698_is_a_TransitionActionBody() {
        return TransitionActionBodyImpl.EMPTY_TRANSITIONACTIONBODY;
    }
    @Override
    public Block R699_has_current_scope_Block() {
        return BlockImpl.EMPTY_BLOCK;
    }


    @Override
    public String getKeyLetters() {
        return BodyImpl.KEY_LETTERS;
    }

    @Override
    public Body self() {
        return this;
    }

    @Override
    public boolean isEmpty() {
        return true;
    }

    @Override
    public Body oneWhere(IWhere condition) throws XtumlException {
        if (null == condition) throw new XtumlException("Null condition passed to selection.");
        return BodyImpl.EMPTY_BODY;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy