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
ContentError
public void setResolveModeLoose()
public boolean looseResolving()
public static Random getRandomGenerator()
public void resolve(ComponentType ct) throws ParseError, ContentError
ParseError
ContentError
public void resolve(Component c) throws ParseError, ContentError
ParseError
ContentError
public void resolve() throws ContentError, ParseError
ContentError
ParseError
public void addComponent(Component c)
public void addComponentType(ComponentType ct)
public void evaluateStatic() throws ContentError, ParseError
ContentError
ParseError
public LemsCollection<Dimension> getDimensions()
public LemsCollection<Unit> getUnits()
public LemsCollection<Valued> getGlobals()
public LemsCollection<Valued> getConstantValueds()
public HashMap<String,Dimensional> getConstantDimHM() throws ContentError
ContentError
public LemsCollection<ComponentType> getComponentTypesExtending(String typeName)
public ComponentType getComponentTypeByName(String nm) throws ContentError
ContentError
public boolean hasComponent(String sid) throws ContentError
ContentError
public Component getComponent(String sid) throws ContentError
ContentError
public String textSummary()
public String textSummary(boolean showTypes)
public String textSummary(boolean showTypes, boolean showDimsUnits)
public Target getTarget() throws ContentError
ContentError
public 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
ContentError
public ArrayList<Component> getAllByType(String typeName) throws ContentError
ContentError
public Parser getParser()
public String[] getSubtypeNames(String typeName) throws ContentError
ContentError
public LemsCollection<Target> getTargets()
public Unit getUnit(String symbol) throws ContentError
ContentError
public void addDimension(Dimension d)
public void addUnit(Unit u)
public void setTargetComponent(Component cp) throws ContentError
ContentError
Copyright © 2019. All rights reserved.