public class OdsCacheMap
extends java.util.HashMap<java.lang.Object,java.lang.Object>
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<ApplicationElement,java.util.Map> |
aaMap |
protected java.util.HashMap<InstanceElement,ApplicationElement> |
aeMap |
protected AoSession |
aoSession |
protected ApplicationStructure |
asObj |
protected java.util.HashMap<java.lang.String,ApplicationElement> |
baeMap |
protected java.util.HashMap<ApplicationElement,BaseElement> |
beMap |
protected java.util.HashMap<ApplicationAttribute,DataType> |
dtMap |
protected java.util.HashMap<ApplicationAttribute,java.lang.Integer> |
lenMap |
protected static java.util.HashMap<java.lang.String,OdsCacheMap> |
MAP |
protected java.util.HashMap<java.lang.String,InstanceElement> |
meqMap |
protected java.util.HashMap<ApplicationAttribute,java.lang.String> |
namMap |
protected java.util.HashMap<ApplicationElement,java.util.Map> |
nvuMap |
protected java.lang.String |
odsVersion |
protected float |
odsVersionVal |
protected int |
parameterVersion |
protected java.util.HashMap<java.lang.String,InstanceElement> |
qtyMap |
protected java.util.HashMap<ApplicationElement,java.util.Map> |
relMap |
protected java.lang.String |
sessionIdent |
protected java.util.HashMap<BaseElement,java.lang.String> |
tMap |
protected java.util.HashMap<java.lang.String,InstanceElement> |
unitMap |
| Constructor and Description |
|---|
OdsCacheMap(AoSession aoSession)
Create the cache using the session.
|
OdsCacheMap(AoSession aoSession,
ApplicationStructure asObj)
Create the cahce using the session and the application structure.
|
OdsCacheMap(ApplicationStructure asObj)
Create the cache using the ApplicationStructure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ApplicationElement aeObj,
InstanceElement ieObj)
Add the application element and the instance element to the cache.
|
void |
destroy()
Destroy the cache.
|
protected void |
finalize() |
ApplicationAttribute |
getApplicationAttribute(ApplicationElement aeObj,
java.lang.String key)
Get the application attribute belongs to the given attribute name of base attribute name.
|
ApplicationAttribute |
getApplicationAttribute(InstanceElement ieObj,
java.lang.String key) |
ApplicationElement |
getApplicationElement(InstanceElement ieObj)
Get the applicatoin element of an instance element.
|
ApplicationElement |
getApplicationElement(java.lang.String type)
Get an application element belong to the given application element name of base type.
|
ApplicationStructure |
getApplicationStructure()
Get the application structure bind to the cache.
|
protected java.util.Map<java.lang.String,ApplicationAttribute> |
getAttributeKeyMap(ApplicationElement aeObj) |
BaseElement |
getBaseElement(ApplicationElement aeObj)
Get the base element of the given application element.
|
BaseElement |
getBaseElement(InstanceElement ieObj)
Get the base element of the given instance element.
|
java.lang.String |
getBaseType(ApplicationElement aeObj)
Get the base type of an application element.
|
java.lang.String |
getBaseType(BaseElement beObj)
Get the base type of an base element.
|
java.lang.String |
getBaseType(InstanceElement ieObj)
Get the base type of an instance element.
|
DataType |
getDataType(ApplicationAttribute aaObj)
Get the datatype of an application attribute.
|
java.lang.String |
getIdent()
Get the ident of the cache.
|
int |
getLength(ApplicationAttribute aaObj)
Get the length of an application attribute.
|
InstanceElement |
getMEQ(ApplicationRelation reMeaMeq,
InstanceElement meaIe,
java.lang.String meqName)
Get the measurement quantitiy.
|
java.lang.String |
getName(ApplicationAttribute aaObj)
Get the name of an attribute.
|
NameValueUnit |
getNameValueUnit(InstanceElement ieObj,
ApplicationElement aeObj,
ApplicationAttribute aaObj)
Get the attribute value.
|
NameValueUnit |
getNameValueUnit(InstanceElement ieObj,
ApplicationElement aeObj,
java.lang.String aaName)
Get the attribute value.
|
InstanceElement |
getQuantity(java.lang.String qName)
Get the quqntity instance element belongs to the given name.
|
ApplicationRelation[] |
getRelations(ApplicationElement ae1,
ApplicationElement ae2)
Get the appliation relkations between the given element.
|
AoSession |
getSession()
Get the sesssion bind to the cache.
|
InstanceElement |
getUnit(java.lang.String unit)
Get the unit instance element belongs to the given unit string.
|
float |
odsVersionVal()
Get the ASAM ODS version float value.
|
protected static java.util.HashMap<java.lang.String,OdsCacheMap> MAP
protected AoSession aoSession
protected java.lang.String sessionIdent
protected ApplicationStructure asObj
protected java.lang.String odsVersion
protected float odsVersionVal
protected java.util.HashMap<InstanceElement,ApplicationElement> aeMap
protected java.util.HashMap<java.lang.String,ApplicationElement> baeMap
protected java.util.HashMap<ApplicationElement,BaseElement> beMap
protected java.util.HashMap<ApplicationElement,java.util.Map> aaMap
protected java.util.HashMap<ApplicationAttribute,DataType> dtMap
protected java.util.HashMap<ApplicationAttribute,java.lang.Integer> lenMap
protected java.util.HashMap<ApplicationAttribute,java.lang.String> namMap
protected java.util.HashMap<BaseElement,java.lang.String> tMap
protected java.util.HashMap<ApplicationElement,java.util.Map> relMap
protected java.util.HashMap<ApplicationElement,java.util.Map> nvuMap
protected java.util.HashMap<java.lang.String,InstanceElement> qtyMap
protected java.util.HashMap<java.lang.String,InstanceElement> meqMap
protected java.util.HashMap<java.lang.String,InstanceElement> unitMap
protected int parameterVersion
public OdsCacheMap(AoSession aoSession) throws AoException
aoSession - The ASAM ODS Session.AoExceptionpublic OdsCacheMap(ApplicationStructure asObj) throws AoException
asObj - the application structure.AoExceptionpublic OdsCacheMap(AoSession aoSession, ApplicationStructure asObj)
aoSession - the session.asObj - the application structure.public void destroy()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic AoSession getSession()
public java.lang.String getIdent()
public ApplicationStructure getApplicationStructure()
public void add(ApplicationElement aeObj, InstanceElement ieObj)
aeObj - the application element belong to the given instance element.ieObj - the instance elment.public ApplicationElement getApplicationElement(InstanceElement ieObj) throws AoException
ieObj - the instance element.AoExceptionpublic BaseElement getBaseElement(ApplicationElement aeObj) throws AoException
aeObj - the application element.AoExceptionpublic BaseElement getBaseElement(InstanceElement ieObj) throws AoException
ieObj - the instance element.AoExceptionpublic ApplicationElement getApplicationElement(java.lang.String type) throws AoException
type - the name or the base name of the element.AoExceptionpublic ApplicationAttribute getApplicationAttribute(InstanceElement ieObj, java.lang.String key) throws AoException
AoExceptionpublic ApplicationAttribute getApplicationAttribute(ApplicationElement aeObj, java.lang.String key) throws AoException
aeObj - the application elementkey - the attribute name or the base name.AoExceptionprotected java.util.Map<java.lang.String,ApplicationAttribute> getAttributeKeyMap(ApplicationElement aeObj)
public DataType getDataType(ApplicationAttribute aaObj) throws AoException
aaObj - the attribute.AoExceptionpublic int getLength(ApplicationAttribute aaObj) throws AoException
aaObj - the attribute.AoExceptionpublic java.lang.String getName(ApplicationAttribute aaObj) throws AoException
aaObj - the attributeAoExceptionpublic java.lang.String getBaseType(BaseElement beObj) throws AoException
aeObj - the base element.AoExceptionpublic java.lang.String getBaseType(ApplicationElement aeObj) throws AoException
aeObj - the application element.AoExceptionpublic java.lang.String getBaseType(InstanceElement ieObj) throws AoException
ieObj - the instance element.AoExceptionpublic ApplicationRelation[] getRelations(ApplicationElement ae1, ApplicationElement ae2)
ae1 - an application element.ae2 - an application element.public NameValueUnit getNameValueUnit(InstanceElement ieObj, ApplicationElement aeObj, java.lang.String aaName)
ieObj - the instance element.aeObj - the application element.aaName - the attribute name.public NameValueUnit getNameValueUnit(InstanceElement ieObj, ApplicationElement aeObj, ApplicationAttribute aaObj)
ieObj - the instance element.aeObj - the application element.aaObj - the attribute.public float odsVersionVal()
public InstanceElement getQuantity(java.lang.String qName)
qName - the quantity name.public InstanceElement getMEQ(ApplicationRelation reMeaMeq, InstanceElement meaIe, java.lang.String meqName)
reMeaMeq - the relation from measurement to measurement quantity.meaIe - the measurement instance element.meqName - the quantity name.public InstanceElement getUnit(java.lang.String unit)
unit - the unit string.