public class UserDefinedProperty
extends java.lang.Object
implements java.io.Serializable
Individual
object created in the context of a
particular DomainTheory
. The user defines a new property with a
declaration in the header area of a Horn Clause file defining a particular
DomainTheory
.
OR the User may define a new property via the Data Gathering GUI. Under either method, a 'template' for the new user-defined property is stored on the DomainTheory object, and used each time an Individual is created.
A UserDefinedProperty is limited in the types of values it may contain; legal types are any one of the following Java built-in types (where 'xx{}' means 'a list objects of type of xx'):
Modifier and Type | Field and Description |
---|---|
boolean |
chartable |
java.awt.Color |
chartColor |
boolean |
connects |
java.lang.Object |
defaultValue |
java.lang.Number |
maxVal |
java.lang.Number |
minVal |
boolean |
sameVal |
boolean |
singleValue |
java.lang.String |
starName |
java.lang.String |
typ |
java.util.ArrayList<java.lang.Object> |
validEntries |
java.util.ArrayList<java.lang.Object> |
value |
Constructor and Description |
---|
UserDefinedProperty()
Constructor with 0 arguments: for use ONLY by Serialization.
|
UserDefinedProperty(java.lang.String nam)
Minimal constructor, using only the property's name.
|
UserDefinedProperty(UserDefinedProperty udp,
boolean useDefault)
Cloning constructor, uses a template to create a specific UDP for an Individual.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValidEntriesString()
Gives a string of valid entries for this UDP.
|
java.lang.String[] |
getValidEntryArray()
Gives an array of valid entries for this UDP.
|
java.lang.String |
toSILKString(java.lang.String size)
This method builds a string that represents a UDP in a SILKin data (_.silk) file.
|
java.lang.String |
toString() |
java.lang.String |
truncate(java.lang.Object obj) |
boolean |
typeCheck(java.lang.Object entry)
This method returns true only if the
entry is of the correct type for this property. |
public java.lang.String starName
public java.lang.String typ
public boolean singleValue
public boolean chartable
public boolean connects
public boolean sameVal
public java.util.ArrayList<java.lang.Object> value
public java.util.ArrayList<java.lang.Object> validEntries
public java.lang.Object defaultValue
public java.lang.Number minVal
public java.lang.Number maxVal
public java.awt.Color chartColor
public UserDefinedProperty(UserDefinedProperty udp, boolean useDefault)
udp
- another UserDefinedProperty object; the 'template' for this one.public UserDefinedProperty(java.lang.String nam)
nam
- the name of this propertypublic UserDefinedProperty()
public boolean typeCheck(java.lang.Object entry)
entry
is of the correct type for this property.entry
- a potential value for this propertypublic java.lang.String toSILKString(java.lang.String size)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String truncate(java.lang.Object obj)
public java.lang.String getValidEntriesString()
public java.lang.String[] getValidEntryArray()