public class Lems extends Object implements ILEMSDocument
| Modifier and Type | Field and Description |
|---|---|
LemsCollection<Assertion> |
assertions |
LemsCollection<Component> |
components |
LemsCollection<ComponentType> |
componentTypes |
LemsCollection<Constant> |
constants |
String |
description |
LemsCollection<Dimension> |
dimensions |
LemsCollection<Target> |
targets |
LemsCollection<Unit> |
units |
| Constructor and Description |
|---|
Lems() |
public LemsCollection<Dimension> dimensions
public LemsCollection<Constant> constants
public LemsCollection<Unit> units
public LemsCollection<Assertion> assertions
public LemsCollection<ComponentType> componentTypes
public LemsCollection<Component> components
public LemsCollection<Target> targets
public String description
public void deduplicate()
throws ContentError
ContentErrorpublic void setResolveModeLoose()
public boolean looseResolving()
public static Random getRandomGenerator()
public void resolve(ComponentType ct) throws ParseError, ContentError
ParseErrorContentErrorpublic void resolve(Component c) throws ParseError, ContentError
ParseErrorContentErrorpublic void resolve()
throws ContentError,
ParseError
ContentErrorParseErrorpublic void addComponent(Component c)
public void addComponentType(ComponentType ct)
public void evaluateStatic()
throws ContentError,
ParseError
ContentErrorParseErrorpublic LemsCollection<Dimension> getDimensions()
public LemsCollection<Unit> getUnits()
public LemsCollection<Valued> getGlobals()
public LemsCollection<Valued> getConstantValueds()
public HashMap<String,Dimensional> getConstantDimHM() throws ContentError
ContentErrorpublic LemsCollection<ComponentType> getComponentTypesExtending(String typeName)
public ComponentType getComponentTypeByName(String nm) throws ContentError
ContentErrorpublic boolean hasComponent(String sid) throws ContentError
ContentErrorpublic Component getComponent(String sid) throws ContentError
ContentErrorpublic String textSummary()
public String textSummary(boolean showTypes)
public String textSummary(boolean showTypes, boolean showDimsUnits)
public Target getTarget() throws ContentError
ContentErrorpublic StateInstance build(StateType cptb, EventManager em) throws ContentError, ConnectionError, ParseError, RuntimeError
public LemsCollection<ComponentType> getComponentTypes()
public LemsCollection<Component> getComponents()
public ArrayList<Component> getAllByType(ComponentType tgtct) throws ContentError
ContentErrorpublic ArrayList<Component> getAllByType(String typeName) throws ContentError
ContentErrorpublic Parser getParser()
public String[] getSubtypeNames(String typeName) throws ContentError
ContentErrorpublic LemsCollection<Target> getTargets()
public Unit getUnit(String symbol) throws ContentError
ContentErrorpublic void addDimension(Dimension d)
public void addUnit(Unit u)
public void setTargetComponent(Component cp) throws ContentError
ContentErrorCopyright © 2019. All rights reserved.