public class ComponentMap
extends java.lang.Object
Constructor and Description |
---|
ComponentMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearIndices() |
ModelComponent |
get(java.lang.String name) |
ModelComponent |
getByNameOrNumber(java.lang.String nameOrNumber,
IndexedComponentList list) |
ModelComponent |
getByNumber(int num,
IndexedComponentList list) |
int |
getIndex(int num) |
int |
getNumberLimit() |
int |
mapComponent(ModelComponent comp,
int idx,
int number) |
void |
resetIndex(ModelComponent comp,
int idx) |
void |
unmapComponent(ModelComponent comp) |
void |
updateNameMap(java.lang.String newName,
java.lang.String oldName,
ModelComponent comp) |
public int mapComponent(ModelComponent comp, int idx, int number)
public void unmapComponent(ModelComponent comp)
public void updateNameMap(java.lang.String newName, java.lang.String oldName, ModelComponent comp)
public void clear()
public int getIndex(int num)
public ModelComponent get(java.lang.String name)
public int getNumberLimit()
public void resetIndex(ModelComponent comp, int idx)
public void clearIndices()
public ModelComponent getByNameOrNumber(java.lang.String nameOrNumber, IndexedComponentList list)
public ModelComponent getByNumber(int num, IndexedComponentList list)