Package | Description |
---|---|
ch.agent.crnickl |
Error messages and exceptions generated by CrNiCKL (
chronicle). |
ch.agent.crnickl.api |
Interfaces and classes for use by client applications.
|
ch.agent.crnickl.impl |
Generic implementation of the CrNiCKL API.
|
Modifier and Type | Method and Description |
---|---|
static T2DBException |
T2DBMsg.exception(String key,
Object... arg)
Return a keyed exception.
|
static T2DBException |
T2DBMsg.exception(Throwable cause,
String key,
Object... arg)
Return a keyed exception.
|
Modifier and Type | Method and Description |
---|---|
AttributeDefinition<?> |
UpdatableSchema.addAttribute(int attrNr)
Add a new attribute to the schema.
|
AttributeDefinition<?> |
UpdatableSchema.addAttribute(int seriesNr,
int attrNr)
Add a new attribute to a series.
|
void |
DatabaseFactory.addDatabase(DatabaseConfiguration configuration)
Add a database to the factory.
|
SeriesDefinition |
UpdatableSchema.addSeries(int seriesNr)
Add a new series to the schema.
|
void |
UpdatableValueType.addValue(T value,
String description)
Add a value to list of allowed values.
|
void |
Updatable.applyUpdates()
Apply pending updates.
|
String[] |
NamingPolicy.asStringArray(String name)
Return an array of simple names obtained by splitting the input parameter.
|
void |
ValueType.check(T value)
Check that the value is allowed.
|
void |
ValueScanner.check(T value)
Throw an exception if the value does not conform to
special restrictions enforced by the value scanner.
|
void |
Property.check(T value)
Check the value for conformity with the
ValueType . |
String |
NamingPolicy.checkSimpleName(String name,
boolean canModify)
Check the length of a simple name, optionally replace
all illegal characters with underscores,
and convert to lower case.
|
void |
Database.clear()
Clear the internal state of the database.
|
void |
Database.close()
Close the database.
|
void |
Database.commit()
Write all updates since the last commit or rollback to permanent storage.
|
void |
Database.configure(DatabaseConfiguration configuration)
Configure the database.
|
void |
SchemaComponent.consolidate()
Deprecated.
|
UpdatableChronicle |
UpdatableChronicle.createChronicle(String name,
boolean tweakName,
String description,
Collection<Attribute<?>> attributes,
Schema schema)
Return a new chronicle to be created in this chronicle.
|
<T> UpdatableProperty<T> |
Database.createProperty(String name,
ValueType<T> valueType,
boolean indexed)
Create a property with the parameters specified.
|
UpdatableSchema |
Database.createSchema(String name,
String nameOfBase)
Create a schema with the parameters specified.
|
<T> UpdatableSeries<T> |
UpdatableChronicle.createSeries(String name)
Create an empty series with the given name.
|
<T> UpdatableValueType<T> |
Database.createValueType(String name,
boolean restricted,
String scannerClassOrKeyword)
Create a value type with the parameters specified.
|
void |
UpdatableSchema.deleteAttribute(int attrNr)
Delete an attribute from the schema.
|
void |
UpdatableSchema.deleteAttribute(int seriesNr,
int attrNr)
Delete an attribute from a series.
|
void |
UpdatableSchema.deleteSeries(int seriesNr)
Delete a series from the schema.
|
void |
UpdatableValueType.deleteValue(T value)
Delete a value from the list of allowed values.
|
void |
UpdatableSchema.destroy()
Destroy the schema.
|
void |
UpdatableSeries.destroy()
Destroy the series.
|
void |
UpdatableValueType.destroy()
Destroy the value type.
|
void |
UpdatableProperty.destroy()
Destroy the property.
|
void |
UpdatableChronicle.destroy()
Destroy the chronicle.
|
void |
SchemaComponent.edit(SchemaComponent component)
Edit the component, taking the parameter as a template.
|
void |
UpdatableSchema.eraseAttribute(int attrNr)
Set an attribute as erasing.
|
void |
UpdatableSchema.eraseAttribute(int seriesNr,
int attrNr)
Set a series attribute as erasing.
|
void |
UpdatableSchema.eraseSeries(int seriesNr)
Set a series as erasing.
|
Chronicle |
Chronicle.findChronicle(String fullName,
boolean mustExist)
Find the chronicle with the the given full name.
|
Attribute<?> |
Series.getAttribute(String name,
boolean mustExist)
Return the attribute with the given name.
|
Attribute<?> |
Chronicle.getAttribute(String name,
boolean mustExist)
Return the attribute with the given name.
|
AttributeDefinition<?> |
IncompleteSchema.getAttributeDefinition(int number,
boolean mustExist)
Return the attribute definition with the given attribute number.
|
AttributeDefinition<?> |
IncompleteSchema.getAttributeDefinition(String name,
boolean mustExist)
Return the attribute definition with the given attribute name.
|
Collection<Attribute<?>> |
Series.getAttributes()
Return all the series' attributes.
|
Collection<Attribute<?>> |
Chronicle.getAttributes()
Return all the chronicle's attributes.
|
Chronicle |
Chronicle.getChronicle(String simpleName,
boolean mustExist)
Return the direct child of this chronicle with the given simple name.
|
Chronicle |
Database.getChronicle(String name,
boolean mustExist)
Return the chronicle with the given full name.
|
Chronicle |
Database.getChronicle(Surrogate surrogate)
Return the chronicle identified by a surrogate.
|
List<Chronicle> |
Property.getChronicles(T value,
int maxSize)
Return a list of chronicles which have the given attribute value.
|
Chronicle |
Chronicle.getCollection()
Return the chronicle to which this chronicle belongs.
|
Database |
DatabaseFactory.getDatabase(String name)
Return the database with the given name.
|
Database |
DatabaseFactory.getDefaultDatabase()
Return the default database.
|
SeriesDefinition |
Series.getDefinition()
Return the series' definition.
|
String |
Series.getDescription(boolean full)
Return the description of the series.
|
String |
Chronicle.getDescription(boolean full)
Return the description of the chronicle.
|
List<String> |
Series.getDescriptions()
Return the list of all descriptions along the chronicle chain and the
series.
|
List<String> |
Chronicle.getDescriptions()
Return the list of all descriptions along the chronicle chain.
|
ch.agent.t2.timeseries.Observation<T> |
Series.getFirstObservation(ch.agent.t2.time.TimeIndex time)
Return the observation at the given time index or the first following
observation.
|
ch.agent.t2.timeseries.Observation<T> |
Series.getLastObservation(ch.agent.t2.time.TimeIndex time)
Return the observation at the give time index or the last preceding
observation.
|
Collection<Chronicle> |
Chronicle.getMembers()
Return the direct members of this chronicle seen as a collection.
|
String |
Series.getName(boolean full)
Return the simple name or the full name of the series.
|
String |
Chronicle.getName(boolean full)
Return the name of the chronicle.
|
List<String> |
Series.getNames()
Return the list of all names along the chronicle chain and the series.
|
List<String> |
Chronicle.getNames()
Return the list of all names along the chronicle chain.
|
String |
DatabaseConfiguration.getParameter(String key,
boolean mustExist)
Return a parameter value given its key.
|
Collection<Property<?>> |
Database.getProperties(String pattern)
Return properties with names matching a pattern.
|
Property<?> |
Database.getProperty(String name,
boolean mustExist)
Return the property with the given name.
|
Property<?> |
Database.getProperty(Surrogate surrogate)
Return the property identified by a surrogate.
|
ch.agent.t2.time.Range |
Series.getRange()
Return the range of values.
|
Schema |
Chronicle.getSchema(boolean effective)
Return the chronicle's schema.
|
Schema |
Database.getSchema(Surrogate surrogate)
Return the schema identified by a surrogate.
|
Collection<Schema> |
Database.getSchemas(String pattern)
Return schemas with names matching a pattern.
|
Collection<Series<?>> |
Chronicle.getSeries()
Return all existing series in this chronicle.
|
<T> Series<T> |
Chronicle.getSeries(String name)
Return the series with the given simple name.
|
<T> Series<T>[] |
Chronicle.getSeries(String[] name,
Class<T> type,
boolean mustBeDefined)
Return an array of series corresponding to the names requested.
|
<T> Series<T> |
Database.getSeries(String name,
boolean mustExist)
Return the series with the given full name.
|
<T> Series<T> |
Database.getSeries(Surrogate surrogate)
Return the series identified by a surrogate.
|
SeriesDefinition |
Schema.getSeriesDefinition(int number,
boolean mustExist)
Return the series definition with the given series number.
|
SeriesDefinition |
Schema.getSeriesDefinition(String name,
boolean mustExist)
Return the series definition with the given series name.
|
Property<?> |
Database.getSparsityBuiltInProperty()
Return the built-in property for sparsity.
|
Property<?> |
Database.getSymbolBuiltInProperty()
Return the built-in property for symbols.
|
ch.agent.t2.time.TimeDomain |
Series.getTimeDomain()
Return the time domain of the series.
|
Property<?> |
Database.getTimeDomainBuiltInProperty()
Return the built-in property for time domains.
|
Property<?> |
Database.getTypeBuiltInProperty()
Return the built-in property for value types.
|
Collection<UpdatableSchema> |
Database.getUpdatableSchemas(String pattern)
Return updatable schemas with names matching a pattern.
|
<T> UpdatableSeries<T> |
Database.getUpdatableSeries(String name,
boolean mustExist)
Return an updatable series.
|
T |
Series.getValue(ch.agent.t2.time.TimeIndex time)
Return the value of the time series at the time index specified.
|
ch.agent.t2.timeseries.TimeAddressable<T> |
Series.getValues(ch.agent.t2.time.Range range)
Return the time series of values in the range specified.
|
ch.agent.t2.timeseries.TimeAddressable<T> |
Series.getValues(ch.agent.t2.time.Range range,
boolean forceSparse)
Return the time series of values in the range specified.
|
ValueType<T> |
Series.getValueType()
Return the value type of the series.
|
<T> ValueType<T> |
Database.getValueType(String name)
Return the value type with the given name.
|
<T> ValueType<T> |
Database.getValueType(Surrogate surrogate)
Return the value type identified by a surrogate.
|
Collection<ValueType<?>> |
Database.getValueTypes(String pattern)
Return value types with names matching a pattern.
|
boolean |
Chronicle.isMemberOf(Chronicle collection)
Return true if this chronicle is member of the collection.
|
boolean |
Series.isSparse()
Return true if the series is forced to use sparse time series.
|
Surrogate |
Database.makeSurrogate(String string)
Return a
Surrogate corresponding to the input. |
void |
Database.open()
Open the database.
|
Schema |
UpdatableSchema.resolve()
Resolve into a schema.
|
void |
Database.rollback()
Forget all updates since the last commit or rollback.
|
void |
Attribute.scan(Object value)
Set the value of the attribute from an
Object . |
T |
ValueType.scan(String value)
Convert the argument to an object of the underlying data type.
|
T |
ValueScanner.scan(String value)
Scan a string and convert it to an object of the scanner's actual type.
|
T |
Property.scan(String value)
Return an object of the underlying data type for this property
converted from a textual value.
|
void |
UpdatableSeries.scanValue(ch.agent.t2.time.TimeIndex t,
Object value)
Add a value to the list of pending updates.
|
void |
Attribute.set(T value)
Set the value of the attribute.
|
void |
UpdatableChronicle.setAttribute(Attribute<?> value)
Set an attribute.
|
void |
UpdatableSchema.setAttributeDefault(int seriesNr,
int attrNr,
Object defaultValue)
Set the default value of a series attribute.
|
<T> void |
UpdatableSchema.setAttributeDefault(int attrNr,
T defaultValue)
Set the default value of an attribute.
|
void |
UpdatableSchema.setAttributeProperty(int seriesNr,
int attrNr,
Property<?> property)
Set the property of a series attribute.
|
<T> void |
UpdatableSchema.setAttributeProperty(int attrNr,
Property<T> property)
Set the property of an attribute.
|
void |
UpdatableSchema.setBase(UpdatableSchema base)
Set the base of the schema.
|
void |
UpdatableChronicle.setCollection(Chronicle collection)
Set the collection of the chronicle.
|
void |
UpdatableChronicle.setDescription(String description)
Set the description of the chronicle.
|
void |
UpdatableSchema.setName(String name)
Set the name of the schema.
|
void |
UpdatableValueType.setName(String name)
Set the name of the value type.
|
void |
UpdatableProperty.setName(String name)
Set the name of the property.
|
void |
UpdatableChronicle.setName(String name)
Set the name of the chronicle.
|
boolean |
UpdatableSeries.setRange(ch.agent.t2.time.Range range)
Set the range of the series.
|
void |
UpdatableChronicle.setSchema(Schema schema)
Set the schema of the chronicle.
|
void |
UpdatableSchema.setSeriesDescription(int seriesNr,
String description)
Set the description of the series.
|
void |
UpdatableSchema.setSeriesName(int seriesNr,
String name)
Set the name of a series.
|
void |
UpdatableSchema.setSeriesSparsity(int seriesNr,
boolean sparse)
Set the sparsity of the series.
|
void |
UpdatableSchema.setSeriesTimeDomain(int seriesNr,
ch.agent.t2.time.TimeDomain timeDomain)
Set the time domain of the series.
|
void |
UpdatableSchema.setSeriesType(int seriesNr,
String type)
Set the value type of the series using the name of the value type.
|
void |
UpdatableSchema.setSeriesType(int seriesNr,
ValueType<?> type)
Set the value type of the series.
|
void |
UpdatableSeries.setValue(ch.agent.t2.time.TimeIndex t,
T value)
Add a value to the list of pending updates.
|
void |
UpdatableSeries.setValues(ch.agent.t2.timeseries.TimeAddressable<T> values)
Set the time series to the list of pending updates.
|
String[] |
NamingPolicy.split(String name)
Return an array of length 2 with the parent name and the simple name of the
input argument.
|
String |
ValueType.toString(Object value)
Convert the argument to a string.
|
String |
ValueScanner.toString(T value)
Check and convert the parameter to a string.
|
<S> ValueType<S> |
ValueType.typeCheck(Class<S> type)
Cast the value type to the type specified.
|
<S> Series<S> |
Series.typeCheck(Class<S> type)
Cast the series to the type specified.
|
<S> AttributeDefinition<S> |
AttributeDefinition.typeCheck(Class<S> type)
Cast the attribute definition to the type specified.
|
<S> UpdatableSeries<S> |
UpdatableSeries.typeCheck(Class<S> type)
Cast the updatable series to the type specified.
|
<S> Attribute<S> |
Attribute.typeCheck(Class<S> type)
Cast the attribute to the type specified.
|
<S> Property<S> |
Property.typeCheck(Class<S> type)
Cast the property to the type specified.
|
<T> UpdatableSeries<T> |
UpdatableChronicle.updateSeries(String name)
Return the updatable series with the given name if it exists.
|
void |
UpdatableValueType.updateValue(T value,
String description)
Update the description of the given allowed value.
|
Constructor and Description |
---|
DatabaseConfiguration(String databaseName,
String databaseClassName,
String timeDomainCatalogClassName)
Construct a database configuration.
|
SimpleDatabaseManager(String parameterString)
Construct a simple database manager from a parameter string using default
separators and keys.
|
SimpleDatabaseManager(String listSeparator,
String kvSeparator,
String dbNameKey,
String dbClassKey,
String tdcClassKey,
String fileKey,
String parameterString)
Construct a simple database manager from a parameter string.
|
Modifier and Type | Method and Description |
---|---|
AttributeDefinition<?> |
UpdatableSchemaImpl.addAttribute(int attrNr) |
AttributeDefinition<?> |
UpdatableSchemaImpl.addAttribute(int seriesNr,
int attrNr) |
boolean |
SchemaComponents.addComponent(T component)
Add a new component.
|
SeriesDefinition |
UpdatableSchemaImpl.addSeries(int seriesNr) |
void |
UpdatableValueTypeImpl.addValue(T value,
String description) |
void |
UpdatableSeriesImpl.applyUpdates() |
void |
UpdatableChronicleImpl.applyUpdates() |
void |
UpdatablePropertyImpl.applyUpdates() |
void |
UpdatableValueTypeImpl.applyUpdates() |
void |
UpdatableSchemaImpl.applyUpdates() |
void |
DatabaseBackendImpl.check(Permission permission,
DBObject dBObject) |
void |
PermissionChecker.check(Permission permission,
DBObject dBObject)
Check if a permission is available on a database object.
|
void |
DatabaseMethodsImpl.check(Permission permission,
DBObject dBObject) |
boolean |
DatabaseBackendImpl.check(Permission permission,
DBObject dBObject,
boolean permissionRequired) |
boolean |
PermissionChecker.check(Permission permission,
DBObject dBObject,
boolean permissionRequired)
Check if a permission is available on a database object.
|
boolean |
DatabaseMethodsImpl.check(Permission permission,
DBObject dBObject,
boolean permissionRequired) |
void |
DatabaseBackendImpl.check(Permission permission,
Surrogate surrogate) |
void |
PermissionChecker.check(Permission permission,
Surrogate surrogate)
Check if a permission is available on a database object.
|
void |
DatabaseMethodsImpl.check(Permission permission,
Surrogate surrogate) |
boolean |
DatabaseBackendImpl.check(Permission permission,
Surrogate surrogate,
boolean permissionRequired) |
boolean |
PermissionChecker.check(Permission permission,
Surrogate surrogate,
boolean permissionRequired)
Check if a permission is available on a database object.
|
boolean |
DatabaseMethodsImpl.check(Permission permission,
Surrogate surrogate,
boolean permissionRequired) |
void |
ValueTypeImpl.NameScanner.check(String value) |
void |
ValueTypeImpl.check(T value) |
void |
PropertyImpl.check(T value) |
void |
DatabaseMethodsImpl.checkIntegrity(DBObject object,
Surrogate s,
Surrogate referrer)
Throw an exception if the DBObject is null.
|
protected void |
DatabaseBackendImpl.checkSurrogate(Surrogate surrogate,
DBObjectType required)
Check the validity of a surrogate for this database and a given database object type.
|
void |
DatabaseBackendImpl.clear() |
void |
DatabaseBackendImpl.close() |
void |
DatabaseBackendImpl.configure(DatabaseConfiguration configuration) |
void |
SchemaComponentImpl.consolidate()
Deprecated.
|
protected Schema |
UpdatableSchemaImpl.consolidate(String name,
Surrogate surrogate,
List<Surrogate> dependencyList)
Apply all changes and return the schema as a standard read-only schema.
|
void |
DatabaseBackend.create(UpdatableChronicle chronicle)
Create a chronicle in the database.
|
void |
DatabaseBackend.create(UpdatableProperty<?> property)
Create a property in the database.
|
void |
DatabaseBackend.create(UpdatableSchema schema)
Create a schema in the database.
|
<T> void |
DatabaseBackend.create(UpdatableSeries<T> series)
Create a series in the database.
|
<T> void |
DatabaseBackend.create(UpdatableValueType<T> valueType)
Create a value type in the database.
|
UpdatableChronicle |
UpdatableChronicleImpl.createChronicle(String orig,
boolean tweakable,
String description,
Collection<Attribute<?>> attributes,
Schema schema) |
<T> UpdatableProperty<T> |
DatabaseBackendImpl.createProperty(String name,
ValueType<T> valueType,
boolean indexed) |
UpdatableSchema |
DatabaseBackendImpl.createSchema(String name,
String nameOfBase) |
<T> UpdatableSeries<T> |
UpdatableChronicleImpl.createSeries(String seriesName) |
<T> UpdatableSeries<T> |
NameSpace.createSeries(String name)
Always throws an exception.
|
<T> UpdatableValueType<T> |
DatabaseBackendImpl.createValueType(String name,
boolean restricted,
String scannerClassOrKeyword) |
void |
UpdatableSchemaImpl.deleteAttribute(int attrNr) |
void |
UpdatableSchemaImpl.deleteAttribute(int seriesNr,
int attrNr) |
void |
DatabaseBackend.deleteAttributeValue(UpdatableChronicle chronicle,
AttributeDefinition<?> def)
Remove the value and description for an attribute of a chronicle.
|
boolean |
ChronicleUpdatePolicyImpl.deleteChronicle(UpdatableChronicle entity) |
boolean |
ChronicleUpdatePolicy.deleteChronicle(UpdatableChronicle chronicle)
Perform actions required as a consequence of deleting a chronicle.
|
void |
DatabaseBackend.deleteChronicle(UpdatableChronicle chronicle)
Delete a chronicle from the database.
|
void |
DatabaseBackend.deleteProperty(UpdatableProperty<?> property)
Delete a property from the database.
|
void |
DatabaseBackend.deleteSchema(UpdatableSchema schema)
Delete a schema from the database.
|
void |
UpdatableSchemaImpl.deleteSeries(int seriesNr) |
boolean |
ChronicleUpdatePolicyImpl.deleteSeries(UpdatableSeries<?> series) |
boolean |
ChronicleUpdatePolicy.deleteSeries(UpdatableSeries<?> series)
Perform actions required as a consequence of deleting a series.
|
<T> void |
DatabaseBackend.deleteSeries(UpdatableSeries<T> series)
Delete a series from the database.
|
void |
UpdatableValueTypeImpl.deleteValue(T value) |
boolean |
ChronicleUpdatePolicyImpl.deleteValue(UpdatableSeries<?> series,
ch.agent.t2.time.TimeIndex index) |
boolean |
ChronicleUpdatePolicy.deleteValue(UpdatableSeries<?> series,
ch.agent.t2.time.TimeIndex index)
Perform actions required as a consequence of deleting a value.
|
<T> boolean |
DatabaseBackendImpl.deleteValue(UpdatableSeries<T> series,
ch.agent.t2.time.TimeIndex t) |
<T> boolean |
DatabaseBackend.deleteValue(UpdatableSeries<T> series,
ch.agent.t2.time.TimeIndex t)
Delete a value from a series in the database.
|
boolean |
ValueAccessMethods.deleteValue(UpdatableSeries<T> series,
ch.agent.t2.time.TimeIndex t,
ChronicleUpdatePolicy policy)
Delete the value at the time index, if the policy allows.
|
void |
DatabaseBackend.deleteValueType(UpdatableValueType<?> valueType)
Delete a value type from the database.
|
void |
UpdatableSeriesImpl.destroy() |
void |
UpdatableChronicleImpl.destroy() |
void |
UpdatablePropertyImpl.destroy() |
void |
UpdatableValueTypeImpl.destroy() |
void |
NameSpace.destroy()
Always throws an exception.
|
void |
UpdatableSchemaImpl.destroy() |
void |
SeriesDefinitionImpl.edit(SchemaComponent component) |
protected AttributeDefinitionImpl<?> |
UpdatableSchemaImpl.editAttributeDefinition(int attrNr)
Start editing an attribute definition.
|
protected AttributeDefinitionImpl<?> |
UpdatableSchemaImpl.editSeriesAttributeDefinition(int seriesNr,
int attrNr,
boolean mustExist)
Start editing a series attribute definition.
|
void |
UpdatableSchemaImpl.eraseAttribute(int attrNr) |
void |
UpdatableSchemaImpl.eraseAttribute(int seriesNr,
int attrNr) |
void |
UpdatableSchemaImpl.eraseSeries(int seriesNr) |
Surrogate |
DatabaseBackend.findChronicle(Property<?> property,
Schema schema)
Return a chronicle with an attribute value for the given property and
schema.
|
Surrogate |
DatabaseBackend.findChronicle(Schema schema)
Return a chronicle referencing a given schema.
|
Surrogate |
DatabaseBackend.findChronicle(SeriesDefinition ss,
Schema schema)
Return a chronicle with a series corresponding to the series definition
and with a schema dependent on the given schema.
|
Chronicle |
ChronicleImpl.findChronicle(String fullName,
boolean mustExist) |
<S> ValueAccessMethods<T> |
ValueTypeImpl.getAccessMethods()
Return the value access methods object for this type.
|
Attribute<?> |
UpdatableChronicleImpl.getAttribute(String attrName,
boolean mustExist) |
Attribute<?> |
ChronicleImpl.getAttribute(String attrName,
boolean mustExist) |
Attribute<?> |
SeriesImpl.getAttribute(String name,
boolean mustExist) |
Attribute<?> |
NameSpace.getAttribute(String name,
boolean mustExist)
Always throws an exception.
|
AttributeDefinition<?> |
SeriesDefinitionImpl.getAttributeDefinition(int attrNr,
boolean mustExist) |
AttributeDefinition<?> |
SchemaImpl.getAttributeDefinition(int number,
boolean mustExist) |
AttributeDefinition<?> |
SeriesDefinitionImpl.getAttributeDefinition(String name,
boolean mustExist) |
AttributeDefinition<?> |
SchemaImpl.getAttributeDefinition(String name,
boolean mustExist) |
Collection<Attribute<?>> |
ChronicleImpl.getAttributes() |
Collection<Attribute<?>> |
SeriesImpl.getAttributes() |
boolean |
DatabaseBackend.getAttributeValue(List<Chronicle> chronicles,
Attribute<?> attribute)
Return true if a value can be found for the attribute in one of
chronicles listed.
|
Chronicle |
DatabaseBackend.getChronicle(Chronicle chronicle)
Get a chronicle from the database.
|
Chronicle |
DatabaseBackendImpl.getChronicle(String name,
boolean mustExist)
Return the chronicle with the given full name.
|
Chronicle |
ChronicleImpl.getChronicle(String simpleName,
boolean mustExist) |
Chronicle |
DatabaseBackendImpl.getChronicle(Surrogate surrogate) |
Chronicle |
DatabaseBackend.getChronicleOrNull(Chronicle parent,
String simpleName)
Get the chronicle with the given parent and simple name from the database.
|
List<Chronicle> |
PropertyImpl.getChronicles(T value,
int maxSize) |
<T> List<Chronicle> |
DatabaseBackend.getChroniclesByAttributeValue(Property<T> property,
T value,
int maxSize)
Get a number of chronicles with a given property value from the database.
|
Collection<Chronicle> |
DatabaseBackend.getChroniclesByParent(Chronicle parent)
Get all chronicles with a given parent.
|
Chronicle |
UpdatableChronicleImpl.getCollection() |
Chronicle |
ChronicleImpl.getCollection() |
Chronicle |
NameSpace.getCollection()
Return null.
|
SeriesDefinition |
SeriesImpl.getDefinition() |
String |
UpdatableChronicleImpl.getDescription(boolean full) |
String |
ChronicleImpl.getDescription(boolean full) |
String |
SeriesImpl.getDescription(boolean full) |
String |
NameSpace.getDescription(boolean full) |
List<String> |
ChronicleImpl.getDescriptions() |
List<String> |
SeriesImpl.getDescriptions() |
List<String> |
NameSpace.getDescriptions() |
ch.agent.t2.timeseries.Observation<T> |
ValueAccessMethods.getFirst(Series<T> series,
ch.agent.t2.time.TimeIndex time)
Return the observation at the time index or the first following one or null.
|
<T> ch.agent.t2.timeseries.Observation<T> |
DatabaseBackendImpl.getFirstObservation(Series<T> series,
ch.agent.t2.time.TimeIndex time) |
<T> ch.agent.t2.timeseries.Observation<T> |
DatabaseBackend.getFirstObservation(Series<T> series,
ch.agent.t2.time.TimeIndex time)
Return the observation at a given time index or the first following
observation.
|
ch.agent.t2.timeseries.Observation<T> |
UpdatableSeriesImpl.getFirstObservation(ch.agent.t2.time.TimeIndex time) |
ch.agent.t2.timeseries.Observation<T> |
SeriesImpl.getFirstObservation(ch.agent.t2.time.TimeIndex time) |
ch.agent.t2.timeseries.Observation<T> |
ValueAccessMethods.getLast(Series<T> series,
ch.agent.t2.time.TimeIndex time)
Return the observation at the time index or the last preceding one or null.
|
<T> ch.agent.t2.timeseries.Observation<T> |
DatabaseBackendImpl.getLastObservation(Series<T> series,
ch.agent.t2.time.TimeIndex time) |
<T> ch.agent.t2.timeseries.Observation<T> |
DatabaseBackend.getLastObservation(Series<T> serie,
ch.agent.t2.time.TimeIndex time)
Return the observation at a given time index or the last preceding
observation.
|
ch.agent.t2.timeseries.Observation<T> |
UpdatableSeriesImpl.getLastObservation(ch.agent.t2.time.TimeIndex time) |
ch.agent.t2.timeseries.Observation<T> |
SeriesImpl.getLastObservation(ch.agent.t2.time.TimeIndex time) |
Collection<Chronicle> |
ChronicleImpl.getMembers() |
String |
UpdatableChronicleImpl.getName(boolean full) |
String |
ChronicleImpl.getName(boolean full) |
String |
SeriesImpl.getName(boolean full) |
String |
NameSpace.getName(boolean full)
Return the name of the chronicle.
|
List<String> |
ChronicleImpl.getNames() |
List<String> |
SeriesImpl.getNames() |
List<String> |
NameSpace.getNames() |
Property<?> |
DatabaseBackend.getProperty(String name)
Get the property with the given name from the database.
|
Property<?> |
DatabaseBackendImpl.getProperty(String name,
boolean mustExist) |
ch.agent.t2.time.Range |
UpdatableSeriesImpl.getRange() |
ch.agent.t2.time.Range |
SeriesImpl.getRange() |
ch.agent.t2.time.Range |
ValueAccessMethods.getRange(Series<T> series)
Return the range of values of a series.
|
<T> ch.agent.t2.time.Range |
DatabaseBackendImpl.getRange(Series<T> series) |
<T> ch.agent.t2.time.Range |
DatabaseBackend.getRange(Series<T> series)
Return the range of the series.
|
Schema |
UpdatableChronicleImpl.getSchema(boolean effective) |
Schema |
ChronicleImpl.getSchema(boolean effective) |
Schema |
NameSpace.getSchema(boolean effective)
Return null.
|
Schema |
DatabaseBackendImpl.getSchema(Surrogate surrogate)
Return the schema identified by a surrogate.
|
Collection<Schema> |
DatabaseBackendImpl.getSchemas(String pattern) |
Collection<Surrogate> |
DatabaseBackend.getSchemaSurrogates(String pattern)
Return a collection of schema surrogates with names matching a pattern.
|
Collection<Series<?>> |
ChronicleImpl.getSeries() |
<T> Series<T>[] |
DatabaseBackend.getSeries(Chronicle chronicle,
String[] names,
int[] numbers)
Get an array of series in a chronicle from the database.
|
<T> Series<T> |
UpdatableChronicleImpl.getSeries(String seriesName) |
<T> Series<T> |
ChronicleImpl.getSeries(String name) |
<T> Series<T> |
NameSpace.getSeries(String name)
Always throws an exception.
|
<T> Series<T>[] |
ChronicleImpl.getSeries(String[] names,
Class<T> type,
boolean mustBeDefined) |
<T> Series<T> |
DatabaseBackendImpl.getSeries(String name,
boolean mustExist) |
SeriesDefinition |
SchemaImpl.getSeriesDefinition(int number,
boolean mustExist) |
SeriesDefinition |
SchemaImpl.getSeriesDefinition(String name,
boolean mustExist) |
Property<?> |
DatabaseBackendImpl.getSparsityBuiltInProperty() |
Property<?> |
DatabaseBackendImpl.getSymbolBuiltInProperty() |
ch.agent.t2.time.TimeDomain |
SeriesImpl.getTimeDomain() |
Property<?> |
DatabaseBackendImpl.getTimeDomainBuiltInProperty() |
Property<?> |
DatabaseBackendImpl.getTypeBuiltInProperty() |
UpdatableSchema |
DatabaseBackendImpl.getUpdatableSchema(Schema schema) |
UpdatableSchema |
DatabaseBackend.getUpdatableSchema(Schema schema)
Return the updatable schema corresponding to a schema.
|
UpdatableSchema |
DatabaseBackend.getUpdatableSchema(Surrogate surrogate)
Get a schema from the database.
|
Collection<UpdatableSchema> |
DatabaseBackendImpl.getUpdatableSchemas(String pattern) |
<T> UpdatableSeries<T> |
DatabaseBackendImpl.getUpdatableSeries(String name,
boolean mustExist) |
T |
SeriesImpl.getValue(ch.agent.t2.time.TimeIndex time) |
ch.agent.t2.timeseries.TimeAddressable<T> |
UpdatableSeriesImpl.getValues(ch.agent.t2.time.Range reqRange)
Return the time series of values in the range specified.
|
ch.agent.t2.timeseries.TimeAddressable<T> |
SeriesImpl.getValues(ch.agent.t2.time.Range range)
Return the time series of values in the range specified.
|
ch.agent.t2.timeseries.TimeAddressable<T> |
SeriesImpl.getValues(ch.agent.t2.time.Range range,
boolean forceSparse) |
long |
ValueAccessMethods.getValues(Series<T> series,
ch.agent.t2.time.Range range,
ch.agent.t2.timeseries.TimeAddressable<T> ts)
Load values into the time series in the range specified.
|
<T> long |
DatabaseBackendImpl.getValues(Series<T> series,
ch.agent.t2.time.Range range,
ch.agent.t2.timeseries.TimeAddressable<T> ts) |
<T> long |
DatabaseBackend.getValues(Series<T> series,
ch.agent.t2.time.Range range,
ch.agent.t2.timeseries.TimeAddressable<T> ts)
Load values into the time series in the range specified.
|
ValueType<T> |
SeriesImpl.getValueType() |
boolean |
ChronicleImpl.isMemberOf(Chronicle collection) |
boolean |
SeriesImpl.isSparse() |
Property<?> |
DatabaseCache.lookUpProperty(String name)
Look up a property in the cache by name.
|
Property<?> |
DatabaseCacheImpl.lookUpProperty(String name) |
DBObjectId |
DatabaseBackend.makeDBObjectId(Object object)
Return a
DBObjectId corresponding to an object. |
protected static Surrogate |
SurrogateImpl.makeSurrogate(DatabaseBackend db,
String surrogate)
Create a surrogate from a string.
|
Surrogate |
DatabaseBackendImpl.makeSurrogate(String string) |
void |
UpdatableSchemaImpl.merge(UpdatableSchema schema)
Merge a schema into this schema.
|
void |
SchemaComponents.nameChanged(boolean attribute,
String oldName,
String newName) |
protected void |
SchemaComponentImpl.nameChanged(boolean attribute,
String oldName,
String newName) |
void |
SchemaComponentContainer.nameChanged(boolean attribute,
String oldName,
String newName)
Tell the container that the name of a component was changed.
|
void |
DatabaseBackendImpl.open() |
Schema |
UpdatableSchemaImpl.resolve() |
void |
AttributeImpl.scan(Object value) |
T |
ValueTypeImpl.scan(String value) |
Boolean |
ValueTypeImpl.BooleanScanner.scan(String value) |
Double |
ValueTypeImpl.NumberScanner.scan(String value) |
String |
ValueTypeImpl.NameScanner.scan(String value) |
ch.agent.t2.time.TimeDomain |
ValueTypeImpl.TimeDomainScanner.scan(String value) |
ch.agent.t2.time.Day |
ValueTypeImpl.DateScanner.scan(String value) |
ch.agent.t2.applied.DateTime |
ValueTypeImpl.DateTimeScanner.scan(String value) |
ValueType<?> |
ValueTypeImpl.TypeScanner.scan(String value) |
T |
PropertyImpl.scan(String value) |
void |
UpdatableSeriesImpl.scanValue(ch.agent.t2.time.TimeIndex t,
Object value) |
void |
AttributeImpl.set(T value) |
void |
UpdatableChronicleImpl.setAttribute(Attribute<?> value) |
void |
NameSpace.setAttribute(Attribute<?> value)
Always throws an exception.
|
void |
UpdatableSchemaImpl.setAttributeDefault(int seriesNr,
int attrNr,
Object defaultValue) |
<T> void |
UpdatableSchemaImpl.setAttributeDefault(int attrNr,
T defaultValue) |
void |
UpdatableSchemaImpl.setAttributeProperty(int seriesNr,
int attrNr,
Property<?> property) |
<T> void |
UpdatableSchemaImpl.setAttributeProperty(int attrNr,
Property<T> property) |
void |
UpdatableSchemaImpl.setBase(UpdatableSchema base) |
void |
UpdatableChronicleImpl.setCollection(Chronicle collection) |
void |
UpdatableChronicleImpl.setDescription(String description) |
void |
NameSpace.setDescription(String description)
Always throws an exception.
|
void |
UpdatableChronicleImpl.setName(String name) |
void |
UpdatablePropertyImpl.setName(String name) |
void |
UpdatableValueTypeImpl.setName(String name) |
void |
NameSpace.setName(String name)
Always throws an exception.
|
void |
UpdatableSchemaImpl.setName(String name) |
void |
AttributeDefinitionImpl.setProperty(Property<T> property)
Set the property.
|
boolean |
UpdatableSeriesImpl.setRange(ch.agent.t2.time.Range range) |
void |
UpdatableChronicleImpl.setSchema(Schema schema) |
void |
UpdatableSchemaImpl.setSeriesDescription(int seriesNr,
String description) |
void |
UpdatableSchemaImpl.setSeriesName(int seriesNr,
String name) |
void |
UpdatableSchemaImpl.setSeriesSparsity(int seriesNr,
boolean sparse) |
void |
UpdatableSchemaImpl.setSeriesTimeDomain(int seriesNr,
ch.agent.t2.time.TimeDomain timeDomain) |
void |
UpdatableSchemaImpl.setSeriesType(int seriesNr,
String type) |
void |
UpdatableSchemaImpl.setSeriesType(int seriesNr,
ValueType<?> type) |
void |
AttributeDefinitionImpl.setValue(Object value)
Set the default value.
|
void |
UpdatableSeriesImpl.setValue(ch.agent.t2.time.TimeIndex t,
T value) |
void |
UpdatableSeriesImpl.setValues(ch.agent.t2.timeseries.TimeAddressable<T> values) |
protected SeriesDefinitionImpl |
UpdatableSchemaImpl.startEditingSeriesSchema(int seriesNr)
Start editing a series definition.
|
ChronicleImpl |
DatabaseCache.store(ChronicleImpl chronicle)
Store a chronicle in the cache and return a copy.
|
ChronicleImpl |
DatabaseCacheImpl.store(ChronicleImpl entity) |
String |
ValueTypeImpl.toString(Object value) |
String |
ValueTypeImpl.NameScanner.toString(String value) |
int |
UpdatableSchemaImpl.traverse(boolean resolve,
UpdatableSchemaVisitor visitor)
Traverse all edited attribute and series definitions.
|
<S> UpdatableSeries<S> |
UpdatableSeriesImpl.typeCheck(Class<S> type) |
<S> Attribute<S> |
AttributeImpl.typeCheck(Class<S> type) |
<S> AttributeDefinition<S> |
AttributeDefinitionImpl.typeCheck(Class<S> type) |
<S> Series<S> |
SeriesImpl.typeCheck(Class<S> type) |
<S> ValueType<S> |
ValueTypeImpl.typeCheck(Class<S> type) |
<S> Property<S> |
PropertyImpl.typeCheck(Class<S> type) |
protected void |
SchemaImpl.update()
Refresh state.
|
protected void |
UpdatableValueTypeImpl.update() |
protected void |
ValueTypeImpl.update()
Refresh state.
|
protected void |
UpdatableSchemaImpl.update() |
void |
DatabaseBackend.update(UpdatableChronicle chronicle)
Update the name and description of a chronicle.
|
void |
DatabaseBackend.update(UpdatableChronicle chronicle,
AttributeDefinition<?> def,
String value,
String description)
Set the value and description of an attribute of a chronicle.
|
void |
DatabaseBackend.update(UpdatableProperty<?> property)
Modify a property in the database.
|
void |
DatabaseBackend.update(UpdatableSchema schema)
Update a schema in the database.
|
boolean |
ChronicleUpdatePolicyImpl.update(UpdatableSeries<?> series,
ch.agent.t2.time.Range range) |
boolean |
ChronicleUpdatePolicy.update(UpdatableSeries<?> series,
ch.agent.t2.time.Range range)
Perform actions required as a consequence of updating the range of a series.
|
<T> boolean |
DatabaseBackendImpl.update(UpdatableSeries<T> series,
ch.agent.t2.time.Range range) |
<T> boolean |
DatabaseBackend.update(UpdatableSeries<T> series,
ch.agent.t2.time.Range range)
Reduce the range of a series in the database.
|
<T> long |
DatabaseBackendImpl.update(UpdatableSeries<T> series,
ch.agent.t2.timeseries.TimeAddressable<T> values) |
<T> long |
DatabaseBackend.update(UpdatableSeries<T> series,
ch.agent.t2.timeseries.TimeAddressable<T> values)
Update a series in the database with values from a time series.
|
void |
DatabaseBackend.update(UpdatableValueType<?> valueType)
Update a value type.
|
void |
UpdatableChronicleImpl.updateAttributes(Collection<Attribute<?>> attributes)
Update attribute values.
|
<T> UpdatableSeries<T> |
UpdatableChronicleImpl.updateSeries(String seriesName) |
<T> UpdatableSeries<T> |
NameSpace.updateSeries(String name)
Always throws an exception.
|
boolean |
ValueAccessMethods.updateSeries(UpdatableSeries<T> series,
ch.agent.t2.time.Range range,
ChronicleUpdatePolicy policy)
Reduce the range of the series, if the policy allows.
|
void |
UpdatableValueTypeImpl.updateValue(T value,
String description) |
long |
ValueAccessMethods.updateValues(UpdatableSeries<T> series,
ch.agent.t2.timeseries.TimeAddressable<T> values,
ChronicleUpdatePolicy policy)
Update the series with the values in the time series, if the policy allows.
|
void |
UpdatableSchemaVisitor.visit(UpdatableSchema schema,
SeriesDefinition seriesDef,
AttributeDefinition<?> attrDef,
AttributeDefinition<?> origAttrDef)
Visit an attribute definition of a chronicle or a series.
|
void |
UpdatableSchemaVisitor.visit(UpdatableSchema schema,
SeriesDefinition def,
SeriesDefinition original)
Visit a series definition.
|
protected int |
UpdatableSchemaImpl.visit(UpdatableSchemaVisitor visitor,
SeriesDefinition seriesDef,
Map<Integer,AttributeDefinition<?>> editedADs,
Map<Integer,AttributeDefinition<?>> origADs) |
<T> void |
SchemaUpdatePolicy.willDelete(Property<T> property)
Throw an exception if the property cannot be rejected.
|
<T> void |
SchemaUpdatePolicyImpl.willDelete(Property<T> property) |
void |
ChronicleUpdatePolicyImpl.willDelete(UpdatableChronicle entity) |
void |
ChronicleUpdatePolicy.willDelete(UpdatableChronicle chronicle)
Throw an exception if the chronicle cannot be deleted.
|
void |
SchemaUpdatePolicy.willDelete(UpdatableSchema schema)
Throw an exception if the schema cannot be deleted.
|
void |
SchemaUpdatePolicyImpl.willDelete(UpdatableSchema schema)
Throw an exception if the schema cannot be deleted.
|
void |
ChronicleUpdatePolicyImpl.willDelete(UpdatableSeries<?> series) |
void |
ChronicleUpdatePolicy.willDelete(UpdatableSeries<?> series)
Throw an exception if the series cannot be deleted.
|
void |
ChronicleUpdatePolicyImpl.willDelete(UpdatableSeries<?> series,
ch.agent.t2.time.TimeIndex index) |
void |
ChronicleUpdatePolicy.willDelete(UpdatableSeries<?> series,
ch.agent.t2.time.TimeIndex index)
Throw an exception if the value cannot be deleted.
|
<T> void |
SchemaUpdatePolicy.willDelete(ValueType<T> valueType)
Throw an exception if the the value type cannot be deleted.
|
<T> void |
SchemaUpdatePolicyImpl.willDelete(ValueType<T> valueType) |
<T> void |
SchemaUpdatePolicy.willDelete(ValueType<T> valueType,
T value)
Throw an exception if the value type value cannot be deleted.
|
<T> void |
SchemaUpdatePolicyImpl.willDelete(ValueType<T> valueType,
T value) |
void |
ChronicleUpdatePolicyImpl.willUpdate(UpdatableChronicle entity) |
void |
ChronicleUpdatePolicy.willUpdate(UpdatableChronicle chronicle)
Throw an exception if the intended update is rejected.
|
void |
SchemaUpdatePolicy.willUpdate(UpdatableSchema schema)
Throw an exception if the update is rejected.
|
void |
SchemaUpdatePolicyImpl.willUpdate(UpdatableSchema schema)
Throw an exception if the update is rejected.
|
void |
ChronicleUpdatePolicyImpl.willUpdate(UpdatableSeries<?> series,
ch.agent.t2.time.Range range) |
void |
ChronicleUpdatePolicy.willUpdate(UpdatableSeries<?> series,
ch.agent.t2.time.Range range)
Throw an exception if the intended update is rejected.
|
Constructor and Description |
---|
AttributeDefinitionImpl(int seriesNr,
int number,
Property<T> property,
T value)
Construct an attribute definition.
|
ChronicleImpl(ChronicleImpl.RawData rawData)
Construct a
Chronicle . |
SchemaComponents(Collection<T> components)
Construct a managed collection of schema components.
|
SchemaImpl(boolean updatable,
String name,
Collection<AttributeDefinition<?>> attributeDefs,
Collection<SeriesDefinition> seriesDefinitions,
Surrogate surrogate,
List<Surrogate> dependencyList)
Construct a
Schema . |
SchemaImpl(String name,
Collection<AttributeDefinition<?>> attributeDefs,
Collection<SeriesDefinition> seriesDefinitions,
Surrogate surrogate,
List<Surrogate> dependencyList)
Construct a
Schema . |
SeriesDefinitionImpl(int number,
String description,
Collection<AttributeDefinition<?>> attributeDefs)
Construct a
SeriesDefinition . |
UpdatableSchemaImpl(String name,
UpdatableSchema base,
Collection<AttributeDefinition<?>> attributeDefs,
Collection<SeriesDefinition> seriesDefinitions,
Surrogate surrogate)
Construct an
UpdatableSchema . |
UpdatableValueTypeImpl(String name,
boolean restricted,
String scannerClassOrKeyword,
Map<String,String> valuesAndDescriptions,
Surrogate surrogate)
Construct an
UpdatableValueType . |
UpdatableValueTypeImpl(ValueTypeImpl<T> valueType)
Construct an
UpdatableValueType . |
ValueTypeImpl(String name,
boolean restricted,
String scannerClassOrKeyword,
Map<String,String> valuesAndDescriptions,
Surrogate surrogate)
Construct a
ValueType . |
ValueTypeImpl(ValueTypeImpl<T> valueType)
This constructor is intended for
UpdatableValueTypeImpl when implementing
the ValueTypeImpl.edit() method. |
Copyright © 2017. All rights reserved.