|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.AbstractDescriptor
org.evolvica.engine.OperatorDescriptor
Descriptor for an algorithmic operator.
Constructor Summary | |
OperatorDescriptor(java.beans.BeanDescriptor descriptor)
Constructor. |
|
OperatorDescriptor(java.lang.Class beanClass)
Constructor. |
|
OperatorDescriptor(java.lang.Class beanClass,
IDatatype datatype)
Constructor. |
|
OperatorDescriptor(java.lang.String beanClassName,
java.net.URI classLocation,
java.net.URI sourceLocation)
Constructor. |
|
OperatorDescriptor(java.lang.String beanClassName,
java.net.URI classLocation,
java.net.URI sourceLocation,
java.lang.String datatypeName)
Constructor. |
Method Summary | |
void |
addAttribute(AttributeDescriptor ad)
Adds an attribute descriptor to this operator descriptor. |
int |
compareTo(java.lang.Object o)
|
AttributeDescriptor |
getAttribute(java.lang.String property)
Returns the property descriptor with the given name. |
java.lang.Class |
getBeanClass()
Returns the operator class. |
java.lang.String |
getBeanClassName()
Returns the operator class name. |
java.lang.String |
getCategory()
Returns the category. |
IDatatype |
getDatatype()
Returns the datatype. |
java.lang.String |
getDatatypeName()
Returns the datatype name. |
int |
getInputSize()
Returns the input size. |
java.net.URI |
getLocation()
Returns the class location |
int |
getOutputSize()
Returns the output size |
AttributeDescriptor |
getPropertyDescriptor(java.lang.String property)
Deprecated. use getAttribute( String ) |
OperatorDescriptor |
getResolved(java.net.URI[] classpath)
Deprecated. use DescriptorResolver for copying |
java.net.URI |
getSourceLocation()
Returns the source location. |
java.lang.String |
getVendor()
Returns the vendor. |
void |
info()
Prints some information to the console. |
boolean |
isResolved()
Checks if this descriptor has been resolved. |
boolean |
isValid()
Deprecated. use DescriptorResolver to check for validity |
java.util.Iterator |
iterateProperties()
Iterate all properties descriptors. |
long |
lastModified()
Checks for the modification time of the resource this descriptor points to. |
void |
load()
Deprecated. use DescriptorBuilder to read descriptors |
void |
resolve(java.net.URI[] classpath)
Deprecated. use DescriptorResolver to perform the resolution |
void |
save()
Deprecated. use DescriptorWriter and DescriptorResolver to store descriptors to disk |
void |
setCategory(java.lang.String string)
Sets the category. |
void |
setDatatype(IDatatype type)
Sets the datatype. |
void |
setDatatypeName(java.lang.String name)
Sets the datatype name. |
void |
setInputSize(int i)
Sets the input size. |
void |
setInterface(int inputs,
int outputs)
Sets the interface (input- and output size). |
void |
setLocation(java.net.URI classLocation,
java.net.URI sourceLocation)
Sets the class and source location of the operator. |
void |
setOutputSize(int i)
Sets the output size. |
void |
setVendor(java.lang.String string)
Sets the vendor |
java.lang.String |
toString()
Returns a string representation. |
Methods inherited from class org.evolvica.engine.AbstractDescriptor |
getDisplayName, getName, getShortDescription, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OperatorDescriptor(java.lang.String beanClassName, java.net.URI classLocation, java.net.URI sourceLocation)
beanClassName
- operator class nameclassLocation
- class locationsourceLocation
- source location (optional)public OperatorDescriptor(java.lang.String beanClassName, java.net.URI classLocation, java.net.URI sourceLocation, java.lang.String datatypeName)
beanClassName
- operator class nameclassLocation
- class locationsourceLocation
- source location (optional)datatypeName
- datatype class namepublic OperatorDescriptor(java.lang.Class beanClass)
beanClass
- operator bean classpublic OperatorDescriptor(java.lang.Class beanClass, IDatatype datatype)
beanClass
- operator bean classdatatype
- datatype for this operatorpublic OperatorDescriptor(java.beans.BeanDescriptor descriptor)
descriptor
- bean descriptorMethod Detail |
public void addAttribute(AttributeDescriptor ad)
ad
- attribute descriptorpublic int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class AbstractDescriptor
Comparable.compareTo(java.lang.Object)
public java.lang.Class getBeanClass()
public java.lang.String getBeanClassName()
public java.lang.String getCategory()
public IDatatype getDatatype()
public java.lang.String getDatatypeName()
public int getInputSize()
public java.net.URI getLocation()
public int getOutputSize()
public AttributeDescriptor getAttribute(java.lang.String property)
property
- property name
public AttributeDescriptor getPropertyDescriptor(java.lang.String property)
property
- property name
public java.net.URI getSourceLocation()
public java.lang.String getVendor()
public void info()
public boolean isResolved()
public boolean isValid()
public java.util.Iterator iterateProperties()
public long lastModified()
public void load() throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.IOException
- thrown if reading the descriptor file fails
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public void resolve(java.net.URI[] classpath) throws org.apache.commons.beanutils.ConversionException, java.net.MalformedURLException
classpath
- classpath to use
org.apache.commons.beanutils.ConversionException
- thrown if the internal type names couldn't be converted
java.net.MalformedURLException
- thrown if the classpath contains an invalid URIpublic OperatorDescriptor getResolved(java.net.URI[] classpath) throws org.apache.commons.beanutils.ConversionException, java.net.MalformedURLException
classpath
- classpath to use
org.apache.commons.beanutils.ConversionException
- thrown if the internal type names couldn't be converted
java.net.MalformedURLException
- thrown if the classpath contains an invalid URIpublic void save() throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException, java.net.URISyntaxException
javax.xml.parsers.ParserConfigurationException
- thrown if the XML parser couldn't be configured
javax.xml.transform.TransformerException
- thrown if the internal XML file couldn't be transformed into a XML file
java.net.URISyntaxException
- thrown in case the source and/or class location URI is invalidpublic void setCategory(java.lang.String string)
string
- categorypublic void setDatatype(IDatatype type)
type
- datatypepublic void setDatatypeName(java.lang.String name)
name
- datatype namepublic void setInputSize(int i)
i
- input sizepublic void setInterface(int inputs, int outputs)
inputs
- number of inputsoutputs
- number of outputspublic void setLocation(java.net.URI classLocation, java.net.URI sourceLocation)
classLocation
- class locationsourceLocation
- source locationpublic void setOutputSize(int i)
i
- output sizepublic void setVendor(java.lang.String string)
string
- new vendor stringpublic java.lang.String toString()
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |