ca.nengo.config
Interface SingleValuedProperty
- All Superinterfaces:
- Property
- All Known Implementing Classes:
- SingleValuedPropertyImpl, TemplateProperty
public interface SingleValuedProperty
- extends Property
A Property that has a single value.
Method Summary |
java.lang.Object |
getValue()
|
void |
setValue(java.lang.Object value)
|
getValue
java.lang.Object getValue()
- Returns:
- Value (for single-valued properties) or first value (for multi-valued properties)
setValue
void setValue(java.lang.Object value)
throws StructuralException
- Parameters:
value
- New value (for single-valued properties) or first value (for multi-valued properties)
- Throws:
StructuralException
- if the given value is not one of the allowed classes, or if the
Configurable rejects it for any other reason (eg inconsistency with other properties)