Class ChasableDataImpl<ReadWrite extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.data.ChasableDataImpl<ReadWrite>
- Type Parameters:
ReadWrite- the writable materialized data type used as writing target
- All Implemented Interfaces:
ChasableData<ReadWrite>
public class ChasableDataImpl<ReadWrite extends MaterializedData & Writable>
extends Object
implements ChasableData<ReadWrite>
Default immutable implementation of
ChasableData.-
Constructor Summary
ConstructorsConstructorDescriptionChasableDataImpl(QueryableData dataSource, ReadWrite writingTarget) Creates chasable data with an optional read-only data source and a writable target.ChasableDataImpl(ReadWrite writingTarget) Creates chasable data whose readable and writable parts are the same. -
Method Summary
Modifier and TypeMethodDescriptionGet a queryable data collection containing both the read-only and the read-write dataRead-only data - the predicates are distinct from the read-write dataRead-write data - the predicates are distinct from the read-only dataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChasableData
checkValidity
-
Constructor Details
-
ChasableDataImpl
Creates chasable data whose readable and writable parts are the same.- Parameters:
writingTarget- the writable target used during chase execution
-
ChasableDataImpl
Creates chasable data with an optional read-only data source and a writable target.- Parameters:
dataSource- an optional read-only data source queried during the chasewritingTarget- the writable target used during chase execution
-
-
Method Details
-
getDataSource
Description copied from interface:ChasableDataRead-only data - the predicates are distinct from the read-write data- Specified by:
getDataSourcein interfaceChasableData<ReadWrite extends MaterializedData & Writable>- Returns:
- the read-only data
-
getWritingTarget
Description copied from interface:ChasableDataRead-write data - the predicates are distinct from the read-only data- Specified by:
getWritingTargetin interfaceChasableData<ReadWrite extends MaterializedData & Writable>- Returns:
- the data that will notably contain the result of the chase
-
getAllReadableData
Description copied from interface:ChasableDataGet a queryable data collection containing both the read-only and the read-write data- Specified by:
getAllReadableDatain interfaceChasableData<ReadWrite extends MaterializedData & Writable>- Returns:
- a queryable data collection containing all readable data
-