ist.palcom.resource.descriptor
Class PRDAssemblyVer
java.lang.Object
ist.palcom.resource.descriptor.ASTNode
ist.palcom.resource.descriptor.AbstractXMLRepresentable
ist.palcom.resource.descriptor.PRDData
ist.palcom.resource.descriptor.PalcomResourceDescriptor
ist.palcom.resource.descriptor.PRDSecondOrder
ist.palcom.resource.descriptor.PRDAssemblyVer
- All Implemented Interfaces:
- IHgraphNode, XMLRepresentable, java.lang.Cloneable
public class PRDAssemblyVer
- extends PRDSecondOrder
- implements java.lang.Cloneable
| Fields inherited from class ist.palcom.resource.descriptor.ASTNode |
CHANGE, children, generatedWithCacheCycle, generatedWithCircularEnabled, generatedWithComponentCheck, getErrorList_visited, getIndent_visited, getPrettyClosingString_visited, getPrettyString_visited, IN_CIRCLE, LAST_CYCLE, numChildren, parent, prettyPrintChildren_visited, RESET_CYCLE |
| Fields inherited from interface ist.palcom.hgraph.IHgraphNode |
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, INVOKATOR_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT |
|
Constructor Summary |
PRDAssemblyVer()
|
PRDAssemblyVer(java.lang.String p1,
DeviceDeclList p2,
ServiceDeclList p3,
ConnectionDeclList p4,
Opt p5,
Opt p6)
Deprecated. |
PRDAssemblyVer(java.lang.String format,
java.lang.String name,
AssemblyID ver)
|
PRDAssemblyVer(java.lang.String p0,
java.lang.String p1,
AssemblyID p2,
boolean p3,
DeviceDeclList p4,
ServiceDeclList p5,
ConnectionDeclList p6,
Opt p7,
Opt p8)
|
| Methods inherited from class ist.palcom.resource.descriptor.PRDData |
addNodeChild, getChildIterator, getFuncFunc, getLocalSID, getNodeName, getNodeParent, getPath, getPRDDataThatEquals, getPRDDataThatIsAboutTheSameEntityAs, getSiblingFunc, getValueFunc, hasChildNamed, isAncestorOf, removeNodeChild, safeEqual, setChild, setNodeName, setNodeParent, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, updatePath |
| Methods inherited from class ist.palcom.resource.descriptor.ASTNode |
addASTtoList, addChild, Define_CommandInfo_ci, Define_Device_parentDevice, Define_Identifier_getLocalName, Define_NetworkNode_lookup, Define_Service_inhCust, Define_Service_inhProv, Define_Service_parentService, Define_String_expectedType, Define_Universe_universe, getChild, getChildNoTransform, getErrorList, getIndent, getIndexOfChild, getNumChild, getParent, getPrettyClosingString, getPrettyString, insertChild, prettyprint, prettyPrintChildren, remove, removeChild, reset, resetTree, setParent |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
lookupVariable_String_visited
protected java.util.Set lookupVariable_String_visited
lookupDevice_DeviceAddress_visited
protected java.util.Set lookupDevice_DeviceAddress_visited
lookupDevice_Identifier_visited
protected java.util.Set lookupDevice_Identifier_visited
lookupService_ServiceAddress_visited
protected java.util.Set lookupService_ServiceAddress_visited
lookupService_ServiceUse_visited
protected java.util.Set lookupService_ServiceUse_visited
lookupService_Identifier_visited
protected java.util.Set lookupService_Identifier_visited
lookupConnection_ServiceExp_ServiceExp_visited
protected java.util.Set lookupConnection_ServiceExp_ServiceExp_visited
lookupConnections_ServiceExp_visited
protected java.util.Set lookupConnections_ServiceExp_visited
getCustServiceAddr_visited
protected boolean getCustServiceAddr_visited
getProvServiceAddr_visited
protected boolean getProvServiceAddr_visited
getParentPRDAssemblyVer_visited
protected boolean getParentPRDAssemblyVer_visited
getAssemblyLabel_visited
protected boolean getAssemblyLabel_visited
encloseInBraces_visited
protected boolean encloseInBraces_visited
PRDAssemblyVer
public PRDAssemblyVer(java.lang.String p1,
DeviceDeclList p2,
ServiceDeclList p3,
ConnectionDeclList p4,
Opt p5,
Opt p6)
- Deprecated.
- The PRDAssembly constructor without the version parameters
is only intended to keep old code compiling. Please update your code.
The format field is assigned a default value, "2".
The version field is assigned a default value, "1".
PRDAssemblyVer
public PRDAssemblyVer(java.lang.String format,
java.lang.String name,
AssemblyID ver)
PRDAssemblyVer
public PRDAssemblyVer()
PRDAssemblyVer
public PRDAssemblyVer(java.lang.String p0,
java.lang.String p1,
AssemblyID p2,
boolean p3,
DeviceDeclList p4,
ServiceDeclList p5,
ConnectionDeclList p6,
Opt p7,
Opt p8)
flushCache
public void flushCache()
- Overrides:
flushCache in class PRDSecondOrder
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class PRDSecondOrder
- Throws:
java.lang.CloneNotSupportedException
copy
public ASTNode copy()
- Overrides:
copy in class ASTNode
fullCopy
public ASTNode fullCopy()
- Overrides:
fullCopy in class ASTNode
isAboutTheSameEntityAs
public boolean isAboutTheSameEntityAs(PRDData data)
- Overrides:
isAboutTheSameEntityAs in class PRDData
- Returns:
- True if info and this info are for the same entity. This can be
/**
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getIDforEditing
public java.lang.String getIDforEditing()
- Description copied from class:
ASTNode
- get the ID (name, etc) of the attribute or child to be edited
when selecting the node.
- Overrides:
getIDforEditing in class ASTNode
updateIDfromEditor
public boolean updateIDfromEditor(java.lang.String id)
- Description copied from class:
ASTNode
- Set the new name (ID, etc).
- Overrides:
updateIDfromEditor in class ASTNode
- Returns:
- true if the tree was actually changed.
setCustServiceAddr
public void setCustServiceAddr(AbstractResourceAddress csa)
getSIID
public ServiceInstanceID getSIID()
getDeviceID
public DeviceID getDeviceID()
setThisReferencesToDeviceID
public void setThisReferencesToDeviceID(DeviceContext context)
setThisReferencesToDeviceID
public void setThisReferencesToDeviceID(DeviceID deviceURN)
getChildArray
public java.lang.Object[] getChildArray()
- Description copied from class:
ASTNode
- Helper method for the TreeView
- Overrides:
getChildArray in class ASTNode
- Returns:
- The (interesting) children of a node, as an Object array
possibly bypassing levels in the tree or ignoring certain children.
checkReleasedForEditing
public boolean checkReleasedForEditing()
tsStr
protected static java.lang.String tsStr()
getBaseVersion
public VersionPart getBaseVersion()
newVersion
public PRDAssemblyVer newVersion(DeviceID did,
java.lang.String logicalVersion)
- Create a new version (full copy).
Sets this version as released;
getLogicalVersion
public java.lang.String getLogicalVersion()
isRelatedTo
public boolean isRelatedTo(PRDAssemblyVer av)
- Checks if ai and this are versions of the same entity,
i.e., they share a common ancestor.
isUpdate
public boolean isUpdate(PRDAssemblyVer av)
- Checks if ai is an update to this
- Returns:
- true if this and ai have a common ancestor, and
it there is a known path in the version tree from
this to ai. (I.e., the parent version is present)
writeAttributes
public void writeAttributes(KXmlSerializer serializer)
throws java.io.IOException
- Overrides:
writeAttributes in class PalcomResourceDescriptor
- Throws:
java.io.IOException
getTagName
public java.lang.String getTagName()
- Specified by:
getTagName in interface XMLRepresentable- Specified by:
getTagName in class AbstractXMLRepresentable
initializeFromElement
public void initializeFromElement(XmlPullParser parser)
- Description copied from interface:
XMLRepresentable
- Initialize the XMLRepresentable from the element where the parser is
currently standing. When calling this method, the parser must be on the
start tag of the element. After returning from the method, the parser
will be at the end tag of the element.
- Specified by:
initializeFromElement in interface XMLRepresentable- Overrides:
initializeFromElement in class PalcomResourceDescriptor
addChildFromXMLElement
public void addChildFromXMLElement(XMLRepresentable child)
- Description copied from class:
AbstractXMLRepresentable
- The implementation up here is empty.
- Specified by:
addChildFromXMLElement in interface XMLRepresentable- Overrides:
addChildFromXMLElement in class AbstractXMLRepresentable
writeXMLElement
public void writeXMLElement(KXmlSerializer serializer)
throws java.io.IOException
- Specified by:
writeXMLElement in interface XMLRepresentable
- Throws:
java.io.IOException
lookupAndFormatAddress
public java.lang.String lookupAndFormatAddress(ServiceAddress sa)
numChildren
protected int numChildren()
- Overrides:
numChildren in class PRDSecondOrder
setFormat
public void setFormat(java.lang.String value)
getFormat
public java.lang.String getFormat()
setName
public void setName(java.lang.String value)
- Overrides:
setName in class PRDSecondOrder
getName
public java.lang.String getName()
- Overrides:
getName in class PRDSecondOrder
setVersion
public void setVersion(AssemblyID node)
getVersion
public AssemblyID getVersion()
getVersionNoTransform
public AssemblyID getVersionNoTransform()
setReleased
public void setReleased(boolean value)
getReleased
public boolean getReleased()
setDevices
public void setDevices(DeviceDeclList node)
getDevices
public DeviceDeclList getDevices()
getDevicesNoTransform
public DeviceDeclList getDevicesNoTransform()
setServices
public void setServices(ServiceDeclList node)
getServices
public ServiceDeclList getServices()
getServicesNoTransform
public ServiceDeclList getServicesNoTransform()
setConnections
public void setConnections(ConnectionDeclList node)
getConnections
public ConnectionDeclList getConnections()
getConnectionsNoTransform
public ConnectionDeclList getConnectionsNoTransform()
setEventHandlerScriptOpt
public void setEventHandlerScriptOpt(Opt opt)
hasEventHandlerScript
public boolean hasEventHandlerScript()
getEventHandlerScript
public EventHandlerScript getEventHandlerScript()
setEventHandlerScript
public void setEventHandlerScript(EventHandlerScript node)
getEventHandlerScriptOpt
public Opt getEventHandlerScriptOpt()
getEventHandlerScriptOptNoTransform
public Opt getEventHandlerScriptOptNoTransform()
setPRDSynthesizedServiceOpt
public void setPRDSynthesizedServiceOpt(Opt opt)
hasPRDSynthesizedService
public boolean hasPRDSynthesizedService()
getPRDSynthesizedService
public PRDSynthesizedService getPRDSynthesizedService()
setPRDSynthesizedService
public void setPRDSynthesizedService(PRDSynthesizedService node)
getPRDSynthesizedServiceOpt
public Opt getPRDSynthesizedServiceOpt()
getPRDSynthesizedServiceOptNoTransform
public Opt getPRDSynthesizedServiceOptNoTransform()
lookupVariable
public VariableDecl lookupVariable(java.lang.String name)
lookupDevice
public DeviceDecl lookupDevice(DeviceAddress did)
lookupDevice
public DeviceDecl lookupDevice(Identifier id)
lookupService
public ServiceDecl lookupService(ServiceAddress sa)
lookupService
public ServiceDecl lookupService(ServiceUse su)
lookupService
public ServiceDecl lookupService(Identifier id)
lookupConnection
public ConnectionDecl lookupConnection(ServiceExp cust,
ServiceExp prov)
lookupConnections
public java.util.ArrayList lookupConnections(ServiceExp svc)
getCustServiceAddr
public AbstractResourceAddress getCustServiceAddr()
getProvServiceAddr
public AbstractResourceAddress getProvServiceAddr()
getParentPRDAssemblyVer
public PRDAssemblyVer getParentPRDAssemblyVer()
- This is a hack used for the released flag check.
(as ASTNode cannot inherit ai())
- Overrides:
getParentPRDAssemblyVer in class ASTNode
- Returns:
- the PRDAssemblyVer at the root of the tree or null
Declared in AssemblyVersioning.jadd at line 203
getAssemblyLabel
public java.lang.String getAssemblyLabel()
- Overrides:
getAssemblyLabel in class ASTNode
encloseInBraces
public boolean encloseInBraces()
- Overrides:
encloseInBraces in class ASTNode
Define_AbstractResourceAddress_custServiceAddress
public AbstractResourceAddress Define_AbstractResourceAddress_custServiceAddress(ASTNode caller,
ASTNode child)
- Overrides:
Define_AbstractResourceAddress_custServiceAddress in class ASTNode
Define_PRDAssemblyVer_av
public PRDAssemblyVer Define_PRDAssemblyVer_av(ASTNode caller,
ASTNode child)
- Overrides:
Define_PRDAssemblyVer_av in class ASTNode
Define_AbstractResourceAddress_provServiceAddress
public AbstractResourceAddress Define_AbstractResourceAddress_provServiceAddress(ASTNode caller,
ASTNode child)
- Overrides:
Define_AbstractResourceAddress_provServiceAddress in class ASTNode