From: Marko Luukkainen Date: Mon, 26 Aug 2019 12:13:43 +0000 (+0300) Subject: Added side effects X-Git-Tag: v1.43.0~203 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=3c4efe7468928951255c4156318f25300773dacf;p=simantics%2F3d.git Added side effects * Without some functions would not work properly gitlab #28 Change-Id: I9ba6c545c46ddab560b27e8cb6e96013905a2985 --- diff --git a/org.simantics.g3d/scl/G3D/Math/MathTools.scl b/org.simantics.g3d/scl/G3D/Math/MathTools.scl index d899edcc..9a340d32 100644 --- a/org.simantics.g3d/scl/G3D/Math/MathTools.scl +++ b/org.simantics.g3d/scl/G3D/Math/MathTools.scl @@ -3,12 +3,12 @@ import "./Tuple3d" as T3 importJava "org.simantics.g3d.math.MathTools" where @JavaName equals - equalsd :: Double -> Double -> Boolean + equalsd :: Double -> Double -> Boolean @JavaName equals - equalst :: T3.Tuple3d -> T3.Tuple3d -> Boolean + equalst :: T3.Tuple3d -> T3.Tuple3d -> Boolean - distance :: T3.Tuple3d -> T3.Tuple3d -> Double - distanceSquared :: T3.Tuple3d -> T3.Tuple3d -> Double + distance :: T3.Tuple3d -> T3.Tuple3d -> Double + distanceSquared :: T3.Tuple3d -> T3.Tuple3d -> Double - isValid :: T3.Tuple3d -> Boolean + isValid :: T3.Tuple3d -> Boolean diff --git a/org.simantics.g3d/scl/G3D/Scenegraph/G3DNode.scl b/org.simantics.g3d/scl/G3D/Scenegraph/G3DNode.scl index 658eb9c5..6c828130 100644 --- a/org.simantics.g3d/scl/G3D/Scenegraph/G3DNode.scl +++ b/org.simantics.g3d/scl/G3D/Scenegraph/G3DNode.scl @@ -9,47 +9,47 @@ importJava "org.simantics.g3d.scenegraph.IG3DNode" where data G3DNode @JavaName getOrientation - getOrientation' :: G3DNode -> Quat4d + getOrientation' :: G3DNode -> Quat4d @JavaName getPosition - getPosition' :: G3DNode -> Vector3d + getPosition' :: G3DNode -> Vector3d @JavaName setOrientation - setOrientation' :: G3DNode -> Quat4d -> () + setOrientation' :: G3DNode -> Quat4d -> () @JavaName setPosition - setPosition' :: G3DNode -> Vector3d -> () + setPosition' :: G3DNode -> Vector3d -> () @JavaName getWorldOrientation - getWorldOrientation' :: G3DNode -> Quat4d + getWorldOrientation' :: G3DNode -> Quat4d @JavaName getWorldPosition - getWorldPosition' :: G3DNode -> Vector3d + getWorldPosition' :: G3DNode -> Vector3d @JavaName setWorldOrientation - setWorldOrientation' :: G3DNode -> Quat4d -> () + setWorldOrientation' :: G3DNode -> Quat4d -> () @JavaName setWorldPosition - setWorldPosition' :: G3DNode -> Vector3d -> () + setWorldPosition' :: G3DNode -> Vector3d -> () class G3DNodeClass a where asG3DNode :: a -> G3DNode asG3DNode = Java.unsafeCoerce - getOrientation :: a -> Quat4d + getOrientation :: a -> Quat4d getOrientation c = getOrientation' (asG3DNode c) - getPosition :: a -> Vector3d + getPosition :: a -> Vector3d getPosition c = getPosition' (asG3DNode c) - setOrientation :: a -> Quat4d -> () + setOrientation :: a -> Quat4d -> () setOrientation c = setOrientation' (asG3DNode c) - setPosition :: a -> Vector3d -> () + setPosition :: a -> Vector3d -> () setPosition c = setPosition' (asG3DNode c) - getWorldOrientation :: a -> Quat4d + getWorldOrientation :: a -> Quat4d getWorldOrientation c = getWorldOrientation' (asG3DNode c) - getWorldPosition :: a -> Vector3d + getWorldPosition :: a -> Vector3d getWorldPosition c = getWorldPosition' (asG3DNode c) - setWorldOrientation :: a -> Quat4d -> () + setWorldOrientation :: a -> Quat4d -> () setWorldOrientation c = setWorldOrientation' (asG3DNode c) - setWorldPosition :: a -> Vector3d -> () + setWorldPosition :: a -> Vector3d -> () setWorldPosition c = setWorldPosition' (asG3DNode c) instance NodeClass G3DNode diff --git a/org.simantics.g3d/scl/G3D/Scenegraph/Node.scl b/org.simantics.g3d/scl/G3D/Scenegraph/Node.scl index b21bf4a2..b232dde1 100644 --- a/org.simantics.g3d/scl/G3D/Scenegraph/Node.scl +++ b/org.simantics.g3d/scl/G3D/Scenegraph/Node.scl @@ -4,36 +4,36 @@ importJava "org.simantics.g3d.scenegraph.base.ParentNode" where data ParentNode @JavaName addNode - addNode' :: ParentNode -> String -> Node -> () + addNode' :: ParentNode -> String -> Node -> () @JavaName removeNode - removeNode' :: ParentNode -> String -> Node -> Boolean + removeNode' :: ParentNode -> String -> Node -> Boolean @JavaName deattachNode - deattachNode' :: ParentNode -> String -> Node -> Boolean + deattachNode' :: ParentNode -> String -> Node -> Boolean @JavaName removeNodes - removeNodes' :: ParentNode -> String ->() + removeNodes' :: ParentNode -> String -> () @JavaName getNodes - getNodes' :: ParentNode -> String -> [Node] + getNodes' :: ParentNode -> String -> [Node] @JavaName getNodes - getAllNodes' :: ParentNode -> [Node] + getAllNodes' :: ParentNode -> [Node] @JavaName remove - remove' :: ParentNode -> () + remove' :: ParentNode -> () class ParentNodeClass a where asParentNode :: a -> ParentNode asParentNode = Java.unsafeCoerce - addNode :: a -> String -> Node -> () + addNode :: a -> String -> Node -> () addNode c = addNode' (asParentNode c) - removeNode :: a -> String -> Node -> Boolean + removeNode :: a -> String -> Node -> Boolean removeNode c = removeNode' (asParentNode c) - deattachNode :: a -> String -> Node -> Boolean + deattachNode :: a -> String -> Node -> Boolean deattachNode c = deattachNode' (asParentNode c) - removeNodes :: a -> String ->() + removeNodes :: a -> String -> () removeNodes c = removeNodes' (asParentNode c) - getNodes :: a -> String -> [Node] + getNodes :: a -> String -> [Node] getNodes c = getNodes' (asParentNode c) - remove :: a -> () + remove :: a -> () remove c = remove' (asParentNode c) instance NodeClass ParentNode @@ -44,21 +44,21 @@ importJava "org.simantics.g3d.scenegraph.base.INode" where data Node @JavaName getParent - getParent' :: Node -> Maybe ParentNode + getParent' :: Node -> Maybe ParentNode @JavaName getRootNode - getRootNode' :: Node -> Maybe ParentNode + getRootNode' :: Node -> Maybe ParentNode @JavaName deattach - deattach' :: Node -> () + deattach' :: Node -> () class NodeClass a where asNode :: a -> Node asNode = Java.unsafeCoerce - getParent :: a -> Maybe ParentNode + getParent :: a -> Maybe ParentNode getParent c = getParent' (asNode c) - getRootNode :: a -> Maybe ParentNode + getRootNode :: a -> Maybe ParentNode getRootNode c = getRootNode' (asNode c) - deattach :: a -> () + deattach :: a -> () deattach c = deattach' (asNode c) instance NodeClass Node where diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/Equipment.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/Equipment.scl index e528e781..91ccef3b 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/Equipment.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/Equipment.scl @@ -9,13 +9,13 @@ importJava "org.simantics.plant3d.scenegraph.Equipment" where data Equipment @JavaName getType - getEquipmentType :: Equipment -> String + getEquipmentType :: Equipment -> String - addChild :: Equipment -> Nozzle -> () - remChild :: Equipment -> Nozzle -> () - getChild :: Equipment -> [Nozzle] + addChild :: Equipment -> Nozzle -> () + remChild :: Equipment -> Nozzle -> () + getChild :: Equipment -> [Nozzle] - numberOfFixedNozzles :: Equipment -> Integer + numberOfFixedNozzles :: Equipment -> Integer instance NodeClass Equipment instance ParentNodeClass Equipment diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/InlineComponent.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/InlineComponent.scl index 4bbea43e..f887b24b 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/InlineComponent.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/InlineComponent.scl @@ -3,12 +3,12 @@ include "./PipelineComponent" importJava "org.simantics.plant3d.scenegraph.InlineComponent" where data InlineComponent - isVariableLength :: InlineComponent -> Boolean - getRotationAngle :: InlineComponent -> Maybe Double - setRotationAngle :: InlineComponent -> Maybe Double -> () + isVariableLength :: InlineComponent -> Boolean + getRotationAngle :: InlineComponent -> Maybe Double + setRotationAngle :: InlineComponent -> Maybe Double -> () - isReversed :: InlineComponent -> Maybe Boolean - setReversed :: InlineComponent -> Maybe Boolean -> () + isReversed :: InlineComponent -> Maybe Boolean + setReversed :: InlineComponent -> Maybe Boolean -> () instance NodeClass InlineComponent instance G3DNodeClass InlineComponent diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/Nozzle.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/Nozzle.scl index 316df0c4..6bebedb8 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/Nozzle.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/Nozzle.scl @@ -3,9 +3,9 @@ include "./PipelineComponent" importJava "org.simantics.plant3d.scenegraph.Nozzle" where data Nozzle - getNozzleId :: Nozzle -> Integer - isFixed :: Nozzle -> Boolean - isConnected :: Nozzle -> Boolean + getNozzleId :: Nozzle -> Integer + isFixed :: Nozzle -> Boolean + isConnected :: Nozzle -> Boolean instance NodeClass Nozzle instance G3DNodeClass Nozzle diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DNode.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DNode.scl index 227c551e..4d01b519 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DNode.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DNode.scl @@ -4,17 +4,17 @@ importJava "org.simantics.plant3d.scenegraph.IP3DVisualNode" where data P3DNode @JavaName getName - getName' :: P3DNode -> Maybe String + getName' :: P3DNode -> Maybe String @JavaName setName - setName' :: P3DNode -> String -> () + setName' :: P3DNode -> String -> () class P3DNodeClass a where asP3DNode :: a -> P3DNode asP3DNode = Java.unsafeCoerce - getName :: a -> Maybe String + getName :: a -> Maybe String getName c = getName' (asP3DNode c) - setName :: a -> String -> () + setName :: a -> String -> () setName c = setName' (asP3DNode c) instance P3DNodeClass P3DNode where diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DRootNode.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DRootNode.scl index 3b499165..6017c07a 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DRootNode.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/P3DRootNode.scl @@ -4,9 +4,9 @@ include "G3D/Scenegraph/G3DNode" importJava "org.simantics.plant3d.scenegraph.P3DRootNode" where data P3DRootNode - addChild :: P3DRootNode -> Node -> () - getChild :: P3DRootNode -> [Node] - remChild :: P3DRootNode -> Node -> () + addChild :: P3DRootNode -> Node -> () + getChild :: P3DRootNode -> [Node] + remChild :: P3DRootNode -> Node -> () instance NodeClass P3DRootNode instance ParentNodeClass P3DRootNode diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/PipelineComponent.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/PipelineComponent.scl index efd86b71..1883620a 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/PipelineComponent.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/PipelineComponent.scl @@ -13,14 +13,14 @@ importJava "org.simantics.plant3d.scenegraph.PipelineComponent" where data PipelineComponent @JavaName getPipeRun - getPipeRun' :: PipelineComponent -> PipeRun + getPipeRun' :: PipelineComponent -> PipeRun @JavaName setPipeRun - setPipeRun' :: PipelineComponent -> PipeRun -> () + setPipeRun' :: PipelineComponent -> PipeRun -> () @JavaName getAlternativePipeRun - getAlternativePipeRun' :: PipelineComponent -> Maybe PipeRun + getAlternativePipeRun' :: PipelineComponent -> Maybe PipeRun @JavaName setAlternativePipeRun - setAlternativePipeRun' :: PipelineComponent -> PipeRun -> () + setAlternativePipeRun' :: PipelineComponent -> PipeRun -> () @JavaName updateParameters updateParameters' :: PipelineComponent -> () @@ -28,72 +28,72 @@ importJava "org.simantics.plant3d.scenegraph.PipelineComponent" where @JavaName getNext getNext' :: PipelineComponent -> Maybe PipelineComponent @JavaName setNext - setNext' :: PipelineComponent -> Maybe PipelineComponent -> () + setNext' :: PipelineComponent -> Maybe PipelineComponent -> () @JavaName getPrevious - getPrevious' :: PipelineComponent -> Maybe PipelineComponent + getPrevious' :: PipelineComponent -> Maybe PipelineComponent @JavaName setPrevious - setPrevious' :: PipelineComponent -> Maybe PipelineComponent -> () + setPrevious' :: PipelineComponent -> Maybe PipelineComponent -> () @JavaName getBranch0 - getBranch0' :: PipelineComponent -> Maybe PipelineComponent + getBranch0' :: PipelineComponent -> Maybe PipelineComponent @JavaName setBranch0 - setBranch0' :: PipelineComponent -> Maybe PipelineComponent -> () + setBranch0' :: PipelineComponent -> Maybe PipelineComponent -> () @JavaName getType - getType' :: PipelineComponent -> String + getType' :: PipelineComponent -> String - //getControlPoint :: PipelineComponent -> PipeControlPoint + //getControlPoint :: PipelineComponent -> PipeControlPoint @JavaName remove - remove' :: PipelineComponent -> () + remove' :: PipelineComponent -> () @JavaName getFlowLength - getFlowLength' :: PipelineComponent -> Maybe Double + getFlowLength' :: PipelineComponent -> Maybe Double @JavaName getEnds - getEnds' :: PipelineComponent -> Tuple3d -> Tuple3d -> () + getEnds' :: PipelineComponent -> Tuple3d -> Tuple3d -> () class PipelineComponentClass a where asPipelineComponent :: a -> PipelineComponent asPipelineComponent = Java.unsafeCoerce - getPipeRun :: a -> PipeRun + getPipeRun :: a -> PipeRun getPipeRun c = getPipeRun' (asPipelineComponent c) - setPipeRun :: a -> PipeRun -> () + setPipeRun :: a -> PipeRun -> () setPipeRun c = setPipeRun' (asPipelineComponent c) - getAlternativePipeRun :: a -> Maybe PipeRun + getAlternativePipeRun :: a -> Maybe PipeRun getAlternativePipeRun c = getAlternativePipeRun' (asPipelineComponent c) - setAlternativePipeRun :: a -> PipeRun -> () + setAlternativePipeRun :: a -> PipeRun -> () setAlternativePipeRun c = setAlternativePipeRun' (asPipelineComponent c) - updateParameters :: a -> () + updateParameters :: a -> () updateParameters c = updateParameters' (asPipelineComponent c) - getNext :: a -> Maybe PipelineComponent + getNext :: a -> Maybe PipelineComponent getNext c = getNext' (asPipelineComponent c) - setNext :: a -> Maybe PipelineComponent -> () + setNext :: a -> Maybe PipelineComponent -> () setNext c = setNext' (asPipelineComponent c) - getPrevious :: a -> Maybe PipelineComponent + getPrevious :: a -> Maybe PipelineComponent getPrevious c = getPrevious' (asPipelineComponent c) - setPrevious :: a -> Maybe PipelineComponent -> () + setPrevious :: a -> Maybe PipelineComponent -> () setPrevious c = setPrevious' (asPipelineComponent c) - getBranch0 :: a -> Maybe PipelineComponent + getBranch0 :: a -> Maybe PipelineComponent getBranch0 c = getBranch0' (asPipelineComponent c) - setBranch0 :: a -> Maybe PipelineComponent -> () + setBranch0 :: a -> Maybe PipelineComponent -> () setBranch0 c = setBranch0' (asPipelineComponent c) - getType :: a -> String + getType :: a -> String getType c = getType' (asPipelineComponent c) - remove :: a -> () + remove :: a -> () remove c = remove' (asPipelineComponent c) - getFlowLength :: a -> Maybe Double + getFlowLength :: a -> Maybe Double getFlowLength c = getFlowLength' (asPipelineComponent c) - getEnds :: a -> Tuple3d -> Tuple3d -> () + getEnds :: a -> Tuple3d -> Tuple3d -> () getEnds c = getEnds' (asPipelineComponent c) instance NodeClass PipelineComponent @@ -133,25 +133,25 @@ importJava "org.simantics.plant3d.scenegraph.controlpoint.PipeControlPoint" wher //@JavaName getType //getPointType :: PipeControlPoint -> PointType - isFixed :: PipeControlPoint -> Boolean + isFixed :: PipeControlPoint -> Boolean - getSubPoint :: PipeControlPoint -> [PipeControlPoint] - getParentPoint :: PipeControlPoint -> Maybe PipeControlPoint + getSubPoint :: PipeControlPoint -> [PipeControlPoint] + getParentPoint :: PipeControlPoint -> Maybe PipeControlPoint importJava "org.simantics.plant3d.scenegraph.PipeRun" where data PipeRun - getTurnRadius :: PipeRun -> Double - setTurnRadius :: PipeRun -> Double -> () + getTurnRadius :: PipeRun -> Double + setTurnRadius :: PipeRun -> Double -> () - getPipeDiameter :: PipeRun -> Double - setPipeDiameter :: PipeRun -> Double -> () + getPipeDiameter :: PipeRun -> Double + setPipeDiameter :: PipeRun -> Double -> () - addChild :: PipeRun -> PipelineComponent -> () - getChild :: PipeRun -> [PipelineComponent] - remChild :: PipeRun -> PipelineComponent -> () + addChild :: PipeRun -> PipelineComponent -> () + getChild :: PipeRun -> [PipelineComponent] + remChild :: PipeRun -> PipelineComponent -> () - getSortedChild :: PipeRun -> [PipelineComponent] + getSortedChild :: PipeRun -> [PipelineComponent] instance NodeClass PipeRun instance ParentNodeClass PipeRun diff --git a/org.simantics.plant3d/scl/Plant3d/Scenegraph/TurnComponent.scl b/org.simantics.plant3d/scl/Plant3d/Scenegraph/TurnComponent.scl index 3eedf63f..19cc533e 100644 --- a/org.simantics.plant3d/scl/Plant3d/Scenegraph/TurnComponent.scl +++ b/org.simantics.plant3d/scl/Plant3d/Scenegraph/TurnComponent.scl @@ -5,14 +5,14 @@ import "G3D/Math/Vector3d" importJava "org.simantics.plant3d.scenegraph.TurnComponent" where data TurnComponent - isVariableAngle :: TurnComponent -> Boolean - getTurnAngle :: TurnComponent -> Maybe Double - setTurnAngle :: TurnComponent -> Maybe Double -> () + isVariableAngle :: TurnComponent -> Boolean + getTurnAngle :: TurnComponent -> Maybe Double + setTurnAngle :: TurnComponent -> Maybe Double -> () - getTurnAxis :: TurnComponent -> Vector3d + getTurnAxis :: TurnComponent -> Vector3d - getRotationAngle :: TurnComponent -> Maybe Double - setRotationAngle :: TurnComponent -> Maybe Double -> () + getRotationAngle :: TurnComponent -> Maybe Double + setRotationAngle :: TurnComponent -> Maybe Double -> () instance NodeClass TurnComponent instance G3DNodeClass TurnComponent diff --git a/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl b/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl index 24b2e42c..e88d271a 100644 --- a/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl +++ b/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl @@ -32,7 +32,7 @@ importJava "org.simantics.plant3d.utils.ComponentUtils$InsertInstruction" where data InsertInstruction @JavaName "" - createInsertInstruction :: () -> InsertInstruction + createInsertInstruction :: () -> InsertInstruction setTypeUri :: InsertInstruction -> String -> () setPosition :: InsertInstruction -> PositionType -> () diff --git a/org.simantics.plant3d/scl/Plant3d/Utils/Loader.scl b/org.simantics.plant3d/scl/Plant3d/Utils/Loader.scl index a3371156..12ff32a7 100644 --- a/org.simantics.plant3d/scl/Plant3d/Utils/Loader.scl +++ b/org.simantics.plant3d/scl/Plant3d/Utils/Loader.scl @@ -4,6 +4,6 @@ import "./P3DScriptNodeMap" importJava "org.simantics.plant3d.scl.SCLUtil" where - loadReadOnly :: Resource -> P3DRootNode - load :: Resource -> P3DScriptNodeMap + loadReadOnly :: Resource -> P3DRootNode + load :: Resource -> P3DScriptNodeMap diff --git a/org.simantics.plant3d/scl/Plant3d/Utils/P3DScriptNodeMap.scl b/org.simantics.plant3d/scl/Plant3d/Utils/P3DScriptNodeMap.scl index 131b560f..a2ca0835 100644 --- a/org.simantics.plant3d/scl/Plant3d/Utils/P3DScriptNodeMap.scl +++ b/org.simantics.plant3d/scl/Plant3d/Utils/P3DScriptNodeMap.scl @@ -7,9 +7,9 @@ importJava "org.simantics.plant3d.scl.P3DScriptNodeMap" where update :: P3DScriptNodeMap -> () populate :: P3DScriptNodeMap -> () - getRootNode :: P3DScriptNodeMap -> ParentNode + getRootNode :: P3DScriptNodeMap -> ParentNode - isChangeTracking :: P3DScriptNodeMap -> Boolean + isChangeTracking :: P3DScriptNodeMap -> Boolean setChangeTracking :: P3DScriptNodeMap -> Boolean -> () diff --git a/org.simantics.plant3d/scl/Plant3d/Utils/P3DUtil.scl b/org.simantics.plant3d/scl/Plant3d/Utils/P3DUtil.scl index 1e73caf4..d185992d 100644 --- a/org.simantics.plant3d/scl/Plant3d/Utils/P3DUtil.scl +++ b/org.simantics.plant3d/scl/Plant3d/Utils/P3DUtil.scl @@ -13,22 +13,22 @@ importJava "org.simantics.plant3d.utils.Item$Type" where importJava "org.simantics.plant3d.utils.Item" where data Item - getUri :: Item -> String - getName :: Item -> String - getType :: Item -> ItemType + getUri :: Item -> String + getName :: Item -> String + getType :: Item -> ItemType - isCode :: Item -> Boolean - isVariable :: Item -> Boolean - isSizeChange :: Item -> Boolean + isCode :: Item -> Boolean + isVariable :: Item -> Boolean + isSizeChange :: Item -> Boolean importJava "org.simantics.plant3d.utils.P3DUtil" where - getEquipments :: () -> [Item] - getNozzles :: () -> [Item] - getTurns :: () -> [Item] - getInlines :: () -> [Item] - getEnds :: () -> [Item] - filterUserComponents :: [Item] -> [Item] + getEquipments :: () -> [Item] + getNozzles :: () -> [Item] + getTurns :: () -> [Item] + getInlines :: () -> [Item] + getEnds :: () -> [Item] + filterUserComponents :: [Item] -> [Item] createModel :: String -> Resource