org.bimserver.models.ifc4.impl.IfcOffsetCurve2DImpl Maven / Gradle / Ivy
/**
* Copyright (C) 2009-2014 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.bimserver.models.ifc4.impl;
import org.bimserver.models.ifc4.Ifc4Package;
import org.bimserver.models.ifc4.IfcCurve;
import org.bimserver.models.ifc4.IfcOffsetCurve2D;
import org.eclipse.emf.ecore.EClass;
/**
*
* An implementation of the model object 'Ifc Offset Curve2 D'.
*
*
* The following features are implemented:
*
*
* - {@link org.bimserver.models.ifc4.impl.IfcOffsetCurve2DImpl#getBasisCurve Basis Curve}
* - {@link org.bimserver.models.ifc4.impl.IfcOffsetCurve2DImpl#getDistance Distance}
* - {@link org.bimserver.models.ifc4.impl.IfcOffsetCurve2DImpl#getDistanceAsString Distance As String}
* - {@link org.bimserver.models.ifc4.impl.IfcOffsetCurve2DImpl#isSelfIntersect Self Intersect}
*
*
* @generated
*/
public class IfcOffsetCurve2DImpl extends IfcCurveImpl implements IfcOffsetCurve2D {
/**
*
*
* @generated
*/
protected IfcOffsetCurve2DImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Ifc4Package.Literals.IFC_OFFSET_CURVE2_D;
}
/**
*
*
* @generated
*/
public IfcCurve getBasisCurve() {
return (IfcCurve) eGet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__BASIS_CURVE, true);
}
/**
*
*
* @generated
*/
public void setBasisCurve(IfcCurve newBasisCurve) {
eSet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__BASIS_CURVE, newBasisCurve);
}
/**
*
*
* @generated
*/
public double getDistance() {
return (Double) eGet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__DISTANCE, true);
}
/**
*
*
* @generated
*/
public void setDistance(double newDistance) {
eSet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__DISTANCE, newDistance);
}
/**
*
*
* @generated
*/
public String getDistanceAsString() {
return (String) eGet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__DISTANCE_AS_STRING, true);
}
/**
*
*
* @generated
*/
public void setDistanceAsString(String newDistanceAsString) {
eSet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__DISTANCE_AS_STRING, newDistanceAsString);
}
/**
*
*
* @generated
*/
public boolean isSelfIntersect() {
return (Boolean) eGet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__SELF_INTERSECT, true);
}
/**
*
*
* @generated
*/
public void setSelfIntersect(boolean newSelfIntersect) {
eSet(Ifc4Package.Literals.IFC_OFFSET_CURVE2_D__SELF_INTERSECT, newSelfIntersect);
}
} //IfcOffsetCurve2DImpl