Package org.lemsml.jlems.core.type
Class ComponentType
- java.lang.Object
-
- org.lemsml.jlems.core.type.Base
-
- org.lemsml.jlems.core.type.ComponentType
-
-
Field Summary
-
Fields inherited from class org.lemsml.jlems.core.type.Base
description, id
-
-
Constructor Summary
Constructors Constructor Description ComponentType()
ComponentType(java.lang.String s)
-
Method Summary
-
Methods inherited from class org.lemsml.jlems.core.type.Base
getDescription, setDescription
-
-
-
-
Field Detail
-
name
public java.lang.String name
-
eXtends
public java.lang.String eXtends
-
r_extends
public ComponentType r_extends
-
parameters
public LemsCollection<Parameter> parameters
-
indexParameters
public LemsCollection<IndexParameter> indexParameters
-
derivedParameters
public LemsCollection<DerivedParameter> derivedParameters
-
pathParameters
public LemsCollection<PathParameter> pathParameters
-
requirements
public LemsCollection<Requirement> requirements
-
componentRequirements
public LemsCollection<ComponentRequirement> componentRequirements
-
instanceRequirements
public LemsCollection<InstanceRequirement> instanceRequirements
-
exposures
public LemsCollection<Exposure> exposures
-
childs
public LemsCollection<Child> childs
-
childrens
public LemsCollection<Children> childrens
-
links
public LemsCollection<Link> links
-
componentReferences
public LemsCollection<ComponentReference> componentReferences
-
componentTypeReferences
public LemsCollection<ComponentTypeReference> componentTypeReferences
-
locations
public LemsCollection<Location> locations
-
propertys
public LemsCollection<Property> propertys
-
dynamicses
public LemsCollection<Dynamics> dynamicses
-
structures
public LemsCollection<Structure> structures
-
simulations
public LemsCollection<Simulation> simulations
-
equilibriums
public LemsCollection<Equilibrium> equilibriums
-
procedures
public LemsCollection<Procedure> procedures
-
geometrys
public LemsCollection<Geometry> geometrys
-
fixeds
public LemsCollection<Fixed> fixeds
-
constants
public LemsCollection<Constant> constants
-
attachmentses
public LemsCollection<Attachments> attachmentses
-
eventPorts
public LemsCollection<EventPort> eventPorts
-
paths
public LemsCollection<Path> paths
-
texts
public LemsCollection<Text> texts
-
collections
public LemsCollection<Collection> collections
-
pairCollections
public LemsCollection<PairCollection> pairCollections
-
cpts
private final LemsCollection<Component> cpts
-
finalParams
private final LemsCollection<FinalParam> finalParams
-
instancePropertys
private final LemsCollection<InstanceProperty> instancePropertys
-
finalExposeds
private final LemsCollection<FinalExposed> finalExposeds
-
abouts
public LemsCollection<About> abouts
-
metas
public LemsCollection<Meta> metas
-
standalone
public boolean standalone
-
resolved
boolean resolved
-
-
Method Detail
-
setName
protected void setName(java.lang.String s)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getAbout
public java.lang.String getAbout()
-
isExtension
public boolean isExtension()
-
isOrExtends
public boolean isOrExtends(java.lang.String typeName)
-
isOrExtendsType
public boolean isOrExtendsType(ComponentType ct)
-
extendsType
public boolean extendsType(ComponentType ct)
-
addCpt
public void addCpt(Component cpt)
-
getComponents
public LemsCollection<Component> getComponents()
-
resolve
public void resolve(Lems lems, Parser p) throws ContentError, ParseError
- Throws:
ContentError
ParseError
-
getEventPorts
public LemsCollection<EventPort> getEventPorts()
-
getFinalParams
public LemsCollection<FinalParam> getFinalParams()
-
getFinalExposures
public LemsCollection<FinalExposed> getFinalExposures()
-
getInstancePropertys
public LemsCollection<InstanceProperty> getInstancePropertys()
-
checkResolve
public void checkResolve(Lems lems, Parser p) throws ContentError, ParseError
- Throws:
ContentError
ParseError
-
getDimParams
public LemsCollection<Parameter> getDimParams()
-
getConstants
public LemsCollection<Constant> getConstants()
-
getDerivedParameters
public LemsCollection<DerivedParameter> getDerivedParameters()
-
setsParam
public boolean setsParam(Parameter dp) throws ContentError
- Throws:
ContentError
-
getSetParamValue
public java.lang.String getSetParamValue(Parameter dp) throws ContentError
- Throws:
ContentError
-
getInEventPort
public EventPort getInEventPort(java.lang.String port) throws ContentError
- Throws:
ContentError
-
getOutEventPort
public EventPort getOutEventPort(java.lang.String port) throws ContentError
- Throws:
ContentError
-
getDynamics
public Dynamics getDynamics() throws ContentError
- Throws:
ContentError
-
getSimulation
public Simulation getSimulation() throws ContentError
- Throws:
ContentError
-
getSimpleExposed
public Valued getSimpleExposed(java.lang.String nm) throws ContentError
- Throws:
ContentError
-
hasChild
public boolean hasChild(java.lang.String scb) throws ContentError
- Throws:
ContentError
-
getChildren
public Children getChildren(ComponentType ftype) throws ContentError
- Throws:
ContentError
-
getChildTypes
public java.util.ArrayList<ComponentType> getChildTypes() throws ContentError
- Throws:
ContentError
-
eXtends
private boolean eXtends(ComponentType t)
-
getExtends
public ComponentType getExtends()
-
hasDynamics
public boolean hasDynamics()
-
hasSimulation
public boolean hasSimulation()
-
getComponentRefs
public LemsCollection<ComponentReference> getComponentRefs()
-
getLinks
public LemsCollection<Link> getLinks()
-
checkEquations
public void checkEquations(java.util.HashMap<java.lang.String,Dimensional> cdimHM) throws ContentError
- Throws:
ContentError
-
getAttachmentss
public LemsCollection<Attachments> getAttachmentss()
-
getChildrenByName
public Children getChildrenByName(java.lang.String sn) throws ContentError
- Throws:
ContentError
-
getFinalParam
public Valued getFinalParam(java.lang.String sn) throws ContentError
- Throws:
ContentError
-
getComponentRef
public ComponentReference getComponentRef(java.lang.String sn) throws ContentError
- Throws:
ContentError
-
getPaths
public LemsCollection<Path> getPaths()
-
getTexts
public LemsCollection<Text> getTexts()
-
getRequirements
public LemsCollection<Requirement> getRequirements()
-
getExposures
public LemsCollection<Exposure> getExposures()
-
getChildrens
public LemsCollection<Children> getChildrens()
-
getChilds
public LemsCollection<Child> getChilds()
-
getComponentReferences
public LemsCollection<ComponentReference> getComponentReferences()
-
getExposure
public Exposure getExposure(java.lang.String snm) throws ContentError
- Throws:
ContentError
-
getPropertys
public LemsCollection<Property> getPropertys()
-
getCollection
public Collection getCollection(java.lang.String cnm) throws ContentError
- Throws:
ContentError
-
getPairCollection
public PairCollection getPairCollection(java.lang.String cnm) throws ContentError
- Throws:
ContentError
-
getCollections
public LemsCollection<Collection> getCollections()
-
getPairCollections
public LemsCollection<PairCollection> getPairCollections()
-
getComponentTypeRefs
public LemsCollection<ComponentTypeReference> getComponentTypeRefs()
-
getPathParameters
public LemsCollection<PathParameter> getPathParameters()
-
getParameters
public LemsCollection<Parameter> getParameters()
-
getHierarchyWeight
public double getHierarchyWeight(Lems lems)
-
inherited
public boolean inherited(java.lang.Object obj) throws ContentError
- Specified by:
inherited
in interfaceInheritor
- Throws:
ContentError
-
referencesTo
private double referencesTo(ComponentType dest)
-
hasInheritable
private boolean hasInheritable(java.lang.Object obj) throws ContentError
- Throws:
ContentError
-
addParameter
public void addParameter(Parameter p)
-
addDerivedParameter
public void addDerivedParameter(DerivedParameter dp)
-
getChildCompTypes
public java.util.ArrayList<ComponentType> getChildCompTypes() throws ContentError
- Throws:
ContentError
-
getContextMeta
public XMLElement getContextMeta(java.lang.String ctxt)
-
addEventPort
public void addEventPort(EventPort ep)
-
addDynamics
public void addDynamics(Dynamics d)
-
addExposure
public void addExposure(Exposure expo)
-
getChildType
public java.lang.String getChildType(java.lang.String name)
-
getProcedures
public LemsCollection<Procedure> getProcedures()
-
makeStateType
public StateType makeStateType(Component cpt, boolean fixParams) throws ContentError, ParseError
- Throws:
ContentError
ParseError
-
addConstant
protected void addConstant(java.lang.String name, Dimension dim, java.lang.String value)
-
addText
protected void addText(java.lang.String txt)
-
addRequirement
protected void addRequirement(Requirement req)
-
removeRequirement
public void removeRequirement(java.lang.String rnm) throws ContentError
- Throws:
ContentError
-
setDynamics
protected void setDynamics(Dynamics td)
-
getExposedDimensions
public java.util.Map<java.lang.String,Dimensional> getExposedDimensions()
-
getScopeType
public ComponentType getScopeType(java.lang.String over) throws ContentError
- Throws:
ContentError
-
getIndexParameter
public IndexParameter getIndexParameter(java.lang.String nm) throws ContentError
- Throws:
ContentError
-
-