Class Operation
- java.lang.Object
- 
- es.bsc.dataclay.util.MgrObject<OperationID>
- 
- es.bsc.dataclay.util.management.classmgr.Operation
 
 
- 
 public final class Operation extends MgrObject<OperationID> This class represents an Operation.
- 
- 
Constructor SummaryConstructors Constructor Description Operation()Creates an empty OperationOperation(String newname, String newdescriptor, String newsignature, String newnameAndDescriptor, String newnamespace, String newclassName, boolean newisAbstract)Operation constructor with provided specifications
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(Annotation annotation)Add an annotation to the operationbooleanaddImplementation(Implementation newimplementation)Add a new Implementation to the list of ImplementationsvoidaddLanguageDepInfo(LanguageDependantOperationInfo langInfo)Add language dependant informationvoidaddParam(String paramName, Type newparam)Add a new Params to the map of Paramsbooleanequals(Object object)booleanexistsImplementationInOperation(ImplementationID implementationID)This operation verifies if a Implementation identified by implementationID exists in this Operation.List<Annotation>getAnnotations()Get annotationsStringgetClassName()Get classNameStringgetDescriptor()Get descriptorImplementationgetImplementationInOperation(ImplementationID implementationID)Get the implementation with ID provided in this operation or NULL if it does not exist.List<Implementation>getImplementations()booleangetIsAbstract()Get the Operation::isAbstractbooleangetIsStaticConstructor()Get the Operation::isStaticConstructorJavaOperationInfogetJavaOperationInfo()Get Java language-dependant information of the operationMap<CommonMessages.Langs,LanguageDependantOperationInfo>getLanguageDepInfos()Get the Operation::languageDepInfosMetaClassIDgetMetaClassID()Get the Operation::metaClassIDStringgetName()Get the name of this OperationStringgetNameAndDescriptor()Get nameAndDescriptorStringgetNamespace()Get namespaceNamespaceIDgetNamespaceID()Get the Operation::namespaceIDMap<String,Type>getParams()Get the Parameters of this OperationList<String>getParamsOrder()Get the Parameter order of this OperationList<Type>getParamsTypesInOrder()Get the Parameters types of this OperationPythonOperationInfogetPythonOperationInfo()Get Python language-dependant information of the operationTypegetReturnType()Get the Operation::returnTypeStringgetSignature()Generate operation signatureinthashCode()booleanremoveImplementation(ImplementationID implementationID)This operation remove a Implementation identified by implementationID in the list of implementations.voidsetAnnotations(List<Annotation> annotations)Set annotationsvoidsetClassName(String newclassName)Set classNamevoidsetDescriptor(String newdescriptor)Set descriptorvoidsetImplementations(List<Implementation> newimplementations)voidsetImplementations(SortedSet<Implementation> newimplementations)voidsetIsAbstract(boolean newisAbstract)Set the Operation::isAbstractvoidsetIsStaticConstructor(boolean newisStaticConstructor)Set the Operation::isStaticConstructorvoidsetLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantOperationInfo> newlanguageDepInfos)Set the Operation::languageDepInfosvoidsetMetaClassID(MetaClassID newmetaClassID)Set the Operation::metaClassIDvoidsetName(String newname)Set the Operation::name of this OperationvoidsetNameAndDescriptor(String newnameAndDescriptor)Set nameAndDescriptorvoidsetNamespace(String newnamespace)Set namespacevoidsetNamespaceID(NamespaceID newnamespaceID)Set the Operation::namespaceIDvoidsetParams(Map<String,Type> newparams)Set the Operation::paramsvoidsetParamsOrder(List<String> newparamOrder)Set the Operation::paramOrdervoidsetReturnType(Type newreturnType)Set the Operation::returnTypevoidsetSignature(String newsignature)Set the Operation::signatureStringtoString()- 
Methods inherited from class es.bsc.dataclay.util.MgrObjectgetDataClayID, setDataClayID
 
- 
 
- 
- 
- 
Constructor Detail- 
Operationpublic Operation() Creates an empty Operation
 - 
Operationpublic Operation(String newname, String newdescriptor, String newsignature, String newnameAndDescriptor, String newnamespace, String newclassName, boolean newisAbstract) Operation constructor with provided specifications- Parameters:
- newname- Name of the operation
- newdescriptor- Descriptor of the operation (signature without subtypes)
- newsignature- Signature of the operation
- newnameAndDescriptor- Name and descriptor of the operation
- newnamespace- Namespace of the class containing operation
- newclassName- Name of class of the operation
- newisAbstract- Indicates operation is abstract
 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Get the name of this Operation- Returns:
- Operation::name of container Operation.
 
 - 
setNamepublic void setName(String newname) Set the Operation::name of this Operation- Parameters:
- newname- New name to be set
 
 - 
getParamspublic Map<String,Type> getParams() Get the Parameters of this Operation- Returns:
- Operation::params of container Operation.
 
 - 
getParamsTypesInOrderpublic List<Type> getParamsTypesInOrder() Get the Parameters types of this Operation- Returns:
- Operation::params of container Operation.
 
 - 
setParamspublic void setParams(Map<String,Type> newparams) Set the Operation::params- Parameters:
- newparams- Parameter to set of this Operation.
 
 - 
getParamsOrderpublic List<String> getParamsOrder() Get the Parameter order of this Operation- Returns:
- Operation::paramOrder of container Operation.
 
 - 
setParamsOrderpublic void setParamsOrder(List<String> newparamOrder) Set the Operation::paramOrder- Parameters:
- newparamOrder- The list of name of parameters, in the proper order.
 
 - 
addParampublic void addParam(String paramName, Type newparam) Add a new Params to the map of Params- Parameters:
- paramName- Name of the parameter
- newparam- Param to add
 
 - 
getImplementationspublic List<Implementation> getImplementations() - Returns:
- the implementations
 
 - 
setImplementationspublic void setImplementations(SortedSet<Implementation> newimplementations) - Parameters:
- newimplementations- the implementations to set
 
 - 
setImplementationspublic void setImplementations(List<Implementation> newimplementations) - Parameters:
- newimplementations- the implementations to set This is YAML friendly for lists --instead of sets which Python doesn't like because they contain non-hashable fields.
 
 - 
addImplementationpublic boolean addImplementation(Implementation newimplementation) Add a new Implementation to the list of Implementations- Parameters:
- newimplementation- Implementation to add
- Returns:
- TRUE if Implementation was not found and added. FALSE, otherwise.
 
 - 
existsImplementationInOperationpublic boolean existsImplementationInOperation(ImplementationID implementationID) This operation verifies if a Implementation identified by implementationID exists in this Operation.- Parameters:
- implementationID- ID of the Implementation to query
- Returns:
- TRUE if the provided Implementation exists in the Operation. FALSE otherwise.
 
 - 
getImplementationInOperationpublic Implementation getImplementationInOperation(ImplementationID implementationID) Get the implementation with ID provided in this operation or NULL if it does not exist.- Parameters:
- implementationID- ID of the implementation to get
- Returns:
- The Implementation in the operation or NULL if it does not exist.
 
 - 
removeImplementationpublic boolean removeImplementation(ImplementationID implementationID) This operation remove a Implementation identified by implementationID in the list of implementations.- Parameters:
- implementationID- ID of the implementation to remove
- Returns:
- TRUE if the provided Implementation was successfully removed from system. FALSE otherwise.
 
 - 
getReturnTypepublic Type getReturnType() Get the Operation::returnType- Returns:
- the returnType
 
 - 
setReturnTypepublic void setReturnType(Type newreturnType) Set the Operation::returnType- Parameters:
- newreturnType- the returnType
 
 - 
getMetaClassIDpublic MetaClassID getMetaClassID() Get the Operation::metaClassID- Returns:
- the metaClassID
 
 - 
setMetaClassIDpublic void setMetaClassID(MetaClassID newmetaClassID) Set the Operation::metaClassID- Parameters:
- newmetaClassID- the metaClassID to set
 
 - 
getLanguageDepInfospublic Map<CommonMessages.Langs,LanguageDependantOperationInfo> getLanguageDepInfos() Get the Operation::languageDepInfos- Returns:
- the languageDepInfos
 
 - 
getJavaOperationInfopublic JavaOperationInfo getJavaOperationInfo() Get Java language-dependant information of the operation- Returns:
- Java language-dependant information of the operation
 
 - 
getPythonOperationInfopublic PythonOperationInfo getPythonOperationInfo() Get Python language-dependant information of the operation- Returns:
- Python language-dependant information of the operation
 
 - 
setLanguageDepInfospublic void setLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantOperationInfo> newlanguageDepInfos) Set the Operation::languageDepInfos- Parameters:
- newlanguageDepInfos- the languageDepInfos to set
 
 - 
addLanguageDepInfopublic void addLanguageDepInfo(LanguageDependantOperationInfo langInfo) Add language dependant information- Parameters:
- langInfo- Language information
 
 - 
getIsAbstractpublic boolean getIsAbstract() Get the Operation::isAbstract- Returns:
- the isAbstract
 
 - 
setIsAbstractpublic void setIsAbstract(boolean newisAbstract) Set the Operation::isAbstract- Parameters:
- newisAbstract- the isAbstract to set
 
 - 
getIsStaticConstructorpublic boolean getIsStaticConstructor() Get the Operation::isStaticConstructor- Returns:
- the isStaticConstructor
 
 - 
setIsStaticConstructorpublic void setIsStaticConstructor(boolean newisStaticConstructor) Set the Operation::isStaticConstructor- Parameters:
- newisStaticConstructor- the isStaticConstructor to set
 
 - 
getNamespaceIDpublic NamespaceID getNamespaceID() Get the Operation::namespaceID- Returns:
- the namespaceID
 
 - 
setNamespaceIDpublic void setNamespaceID(NamespaceID newnamespaceID) Set the Operation::namespaceID- Parameters:
- newnamespaceID- the namespaceID to set
 
 - 
getNamespacepublic String getNamespace() Get namespace- Returns:
- the namespace
 
 - 
setNamespacepublic void setNamespace(String newnamespace) Set namespace- Parameters:
- newnamespace- the namespace to set
 
 - 
getClassNamepublic String getClassName() Get className- Returns:
- the className
 
 - 
setClassNamepublic void setClassName(String newclassName) Set className- Parameters:
- newclassName- the className to set
 
 - 
getSignaturepublic String getSignature() Generate operation signature- Returns:
- Signature of the operation
 
 - 
setSignaturepublic void setSignature(String newsignature) Set the Operation::signature- Parameters:
- newsignature- the signature to set
 
 - 
getDescriptorpublic String getDescriptor() Get descriptor- Returns:
- the descriptor
 
 - 
setDescriptorpublic void setDescriptor(String newdescriptor) Set descriptor- Parameters:
- newdescriptor- the descriptor to set
 
 - 
getNameAndDescriptorpublic String getNameAndDescriptor() Get nameAndDescriptor- Returns:
- the nameAndDescriptor
 
 - 
setNameAndDescriptorpublic void setNameAndDescriptor(String newnameAndDescriptor) Set nameAndDescriptor- Parameters:
- newnameAndDescriptor- the nameAndDescriptor to set
 
 - 
getAnnotationspublic List<Annotation> getAnnotations() Get annotations- Returns:
- List of operation's annotations
 
 - 
setAnnotationspublic void setAnnotations(List<Annotation> annotations) Set annotations- Parameters:
- annotations- the list of annotations to set
 
 - 
addAnnotationpublic void addAnnotation(Annotation annotation) Add an annotation to the operation- Parameters:
- annotation- the annotation to add
 
 
- 
 
-