/**
* This method copys the object as shallow copy (all referenced objects are remaining).
*
* @return the cloned object
**/
public Object shallowCopy()
{
IfcEdge ifcEdge = new IfcEdge();
if(this.EdgeStart != null)
ifcEdge.setEdgeStart(this.EdgeStart);
if(this.EdgeEnd != null)
ifcEdge.setEdgeEnd(this.EdgeEnd);
return ifcEdge;
}

/* Generated By: IFC Tools Project EXPRESS TO JAVA COMPILER: Do not edit this file!! */package ifc2x3javatoolbox.ifc2x3tc1;/** * This is a default implementation of the entity IfcEdge<br><br> *<br><br> * Copyright: CC BY-NC-SA 3.0 DE (cc) 2013 Eike Tauscher and Michael Theiler<br><br> * The whole package including this class is licensed under<br> * <a rel='license' href='http://creativecommons.org/licenses/by-nc-sa/3.0/de/deed.en/'> * Creative Commons Attribution-Non-Commercial-Share Alike 3.0 Germany</a>.<br><br> * If you are using the package or parts of it in any commercial way, a commercial license is required.  * Visit <a href='http://www.ifctoolsproject.com'>http://www.ifctoolsproject.com</a> for more information * or contact us directly: <a href='mailto:info@ifctoolsproject.com'>info@ifctoolsproject.com</a><br> */public class IfcEdge extends IfcTopologicalRepresentationItem implements ClassInterface{private static final String[] nonInverseAttributes = new String[]{"IfcVertex","IfcVertex"};private java.util.ArrayList<CloneableObject> stepParameter = null;private java.util.HashSet<ObjectChangeListener> listenerList = null;protected int stepLineNumber;/** EdgeStart is an DEMANDED attribute - may not be null**/protected IfcVertex EdgeStart;/** EdgeEnd is an DEMANDED attribute - may not be null**/protected IfcVertex EdgeEnd;/*** The default constructor.**/public IfcEdge(){}
/*** Constructs a new IfcEdge object using the given parameters.** @param EdgeStart DEMANDED parameter of type IfcVertex - may not be null.* @param EdgeEnd DEMANDED parameter of type IfcVertex - may not be null.**/public IfcEdge(IfcVertex EdgeStart, IfcVertex EdgeEnd){this.EdgeStart = EdgeStart;this.EdgeEnd = EdgeEnd;resolveInverses();}
/** * This method initializes the IfcEdge object using the given parameters.** @param EdgeStart DEMANDED parameter of type IfcVertex - may not be null.* @param EdgeEnd DEMANDED parameter of type IfcVertex - may not be null.**/public void setParameters(IfcVertex EdgeStart, IfcVertex EdgeEnd){this.EdgeStart = EdgeStart;this.EdgeEnd = EdgeEnd;resolveInverses();}
/** * This method is used internally and should NOT be used for own purposes.**/void initialize(java.util.ArrayList<CloneableObject> parameters){this.EdgeStart = (IfcVertex) parameters.get(0);this.EdgeEnd = (IfcVertex) parameters.get(1);resolveInverses();}
/** * This method is used internally and should NOT be used for own purposes.**/void destruct(){ super.destruct();listenerList = null;}
private void resolveInverses(){}
/** * This method is used internally and should NOT be used for own purposes.**/String[] getNonInverseAttributeTypes(){return IfcEdge.nonInverseAttributes;}
/** * This method is used internally and should NOT be used for own purposes.**/private java.util.HashSet<String> getRedefinedDerivedAttributeTypes(){java.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();return redefinedDerivedAttributes;}
/** * This method returns the object IFC  STEP representation. This method is called by the IfcModel object to write IFC STEP files. * * @return the IFC STEP representation of this object**/public String getStepLine(){String stepString = new String("#"+this.stepLineNumber+"= ");stepString = stepString.concat("IFCEDGE(");if(getRedefinedDerivedAttributeTypes().contains("EdgeStart")) stepString = stepString.concat("*,");else{if(this.EdgeStart != null)stepString = stepString.concat(((RootInterface)this.EdgeStart).getStepParameter(IfcVertex.class.isInterface())+",");elsestepString = stepString.concat("$,");}if(getRedefinedDerivedAttributeTypes().contains("EdgeEnd")) stepString = stepString.concat("*);");else{if(this.EdgeEnd != null)stepString = stepString.concat(((RootInterface)this.EdgeEnd).getStepParameter(IfcVertex.class.isInterface())+");");elsestepString = stepString.concat("$);");}return stepString;}
/** * This method is used internally and should NOT be used for own purposes.**/public String getStepParameter(boolean isSelectType){return "#" + this.stepLineNumber;}
/** * This method returns the line number within a IFC  STEP representation. This method is called from other objects, where this one is referenced. * * @return the STEP line number**/public int getStepLineNumber(){return this.stepLineNumber;}
/** * This method is used internally and should NOT be used for own purposes.**/void setStepLineNumber(int number){this.stepLineNumber = number;}
/*** This method sets the EdgeStart attribute to the given value.** @param EdgeStart OPTIONAL value to set**/public void setEdgeStart(IfcVertex EdgeStart){this.EdgeStart = EdgeStart;fireChangeEvent();}
/*** This method returns the value of the EdgeStart attribute.** @return the value of EdgeStart/**/public IfcVertex getEdgeStart(){return this.EdgeStart;}
/*** This method sets the EdgeEnd attribute to the given value.** @param EdgeEnd OPTIONAL value to set**/public void setEdgeEnd(IfcVertex EdgeEnd){this.EdgeEnd = EdgeEnd;fireChangeEvent();}
/*** This method returns the value of the EdgeEnd attribute.** @return the value of EdgeEnd/**/public IfcVertex getEdgeEnd(){return this.EdgeEnd;}
/** * This method is used internally and should NOT be used for own purposes.**/void setStepParameter(java.util.ArrayList<CloneableObject> parameter){this.stepParameter = parameter;}
/** * This method is used internally and should NOT be used for own purposes.**/java.util.ArrayList<CloneableObject> getStepParameter(){return this.stepParameter;}
/** * This method registers an ObjectChangeListener to this object. An event is fired whenever one of its values was changed. *  *@param listener the listener to register**/public void addObjectChangeListener(ObjectChangeListener listener){if (listenerList == null)listenerList = new java.util.HashSet<ObjectChangeListener>(1,1);listenerList.add(listener);}
/** * This method unregisters an ObjectChangeListener from this object. *  *@param listener the listener to unregister**/public void removeObjectChangeListener(ObjectChangeListener listener){if (listenerList == null)return;listenerList.remove(listener);if (listenerList.size()==0) listenerList = null;}
/** * This method removes all currently registered ObjectChangeListeners from this object.**/public void removeAllObjectChangeListeners(){listenerList = null;}
protected void fireChangeEvent(){if(listenerList == null) return;for(ObjectChangeListener listener : listenerList)listener.ifcModelObjectChange(this);}
/** * This method clones the object (deep cloning). * * @return the cloned object**/public Object clone(){IfcEdge ifcEdge = new IfcEdge();if(this.EdgeStart != null)ifcEdge.setEdgeStart((IfcVertex)this.EdgeStart.clone());if(this.EdgeEnd != null)ifcEdge.setEdgeEnd((IfcVertex)this.EdgeEnd.clone());return ifcEdge;}
/** * This method copys the object as shallow copy (all referenced objects are remaining). * * @return the cloned object**/public Object shallowCopy(){IfcEdge ifcEdge = new IfcEdge();if(this.EdgeStart != null)ifcEdge.setEdgeStart(this.EdgeStart);if(this.EdgeEnd != null)ifcEdge.setEdgeEnd(this.EdgeEnd);return ifcEdge;}
/*** This method returns the objects standard description.** @return the standard description**/public String toString(){return "#"+ this.getStepLineNumber() + " " + this.getClass().getSimpleName();}

}

IfcEdge的更多相关文章

随机推荐

  1. Django 之 restframework 版本控制的使用以及源码分析

    Django rest_framework 之 版本控制 一.何为版本控制: ​ 用于版本的控制 二.内置的版本控制类: from rest_framework.versioning import Q ...

  2. GMT与UTC简介(转)

    GMT与UTC简介 一.简介 许多人都知道两地时间表简称为GMT或UTC,而世界时区表则通称为World Time ,那么GMT与UTC的实质原意又是为何?世界时区又是怎么区分的?面盘上密密麻麻的英文 ...

  3. Cleaning Robot POJ - 2688

    题目链接:https://vjudge.net/problem/POJ-2688 题意:在一个地面上,有一个扫地机器人,有一些障碍物,有一些脏的地砖,问,机器热能不能清扫所有的地砖, (机器人不能越过 ...

  4. Java并发编程:ThreadPoolExecutor + Callable + Future(FutureTask) 探知线程的执行状况

    如题 (总结要点) 使用ThreadPoolExecutor来创建线程,使用Callable + Future 来执行并探知线程执行情况: V get (long timeout, TimeUnit ...

  5. Css背景设置 、

    每天进步一小步,一年进步一大步. 第一次发博客园文章,主要记录自己学习的一个过程. CSS3 背景 CSS3 包含多个新的背景属性,它们提供了对背景更强大的控制. background-size ba ...

  6. 20180524模拟赛T3——Word

    [题目描述] 有一个星球要创造新的单词,单词有一些条件: 字母集有\(p\)个元音和\(q\)个辅音,单词由字母构成 每个单词最多有\(n\)个元音和\(n\)个辅音(同一元音或辅音可重复使用) 每个 ...

  7. BJOI2018 day2

    双人猜数游戏 Alice 和 Bob 是一对非常聪明的人,他们可以算出各种各样游戏的最优策略.现在有个综艺节目<最强大佬>请他们来玩一个游戏.主持人写了三个正整数 \(s\) .\(m\) ...

  8. Spring的三大核心思想:IOC(控制反转),DI(依赖注入),AOP(面向切面编程)

    Spring核心思想,IoC与DI详解(如果还不明白,放弃java吧) 1.IoC是什么?    IoC(Inversion of Control)控制反转,IoC是一种新的Java编程模式,目前很多 ...

  9. UI系统的表示与维护

    UI系统的表示与维护: 渲染单元的组织.维护.交互.解释.渲染. UI系统在应用层连接着视图的表示,在系统层连接着视图的绘制. 一.UI的结构 树形结构 二.UI的描述: 1.UI系统或UIkit或U ...

  10. extern与头文件(*.h)的区别和联系

    原文网址为:http://lpy999.blog.163.com/blog/static/117372061201182051413310/ 个人认为有一些道理:所以转过来学习了. 用#include ...