public class MaxAuthorityInformationScheme extends InformationScheme
| Constructor and Description |
|---|
MaxAuthorityInformationScheme()
A MaxAuthorityInformationScheme collects all information in (initially) empty sets.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<InformationEvent> |
deriveProductInformation(ConsumerAgent informationRequestingAgent,
ProductAttribute productAttributeOfInterest,
SimulationContainer simulationContainer)
deriveProductInformation in the RandomInformationScheme will provide a random piece of ProductAttributeInformation
ever provided to the information scheme.
|
boolean |
isValid()
Method that will check that the information scheme is in a valid state (i.e.
|
void |
provideInformation(InformationAgent contributingAgent,
Information contributedInformation,
double systemTime)
The MaxAuthorityInformationScheme only regards the most trustworthy information
|
public MaxAuthorityInformationScheme()
public void provideInformation(InformationAgent contributingAgent, Information contributedInformation, double systemTime) throws java.lang.IllegalArgumentException
provideInformation in class InformationSchemecontributingAgent - The agent providing information to the information schemecontributedInformation - The information that is provided to the information schemesystemTime - The time the information is provided to the systemjava.lang.IllegalArgumentExceptionpublic java.util.Set<InformationEvent> deriveProductInformation(ConsumerAgent informationRequestingAgent, ProductAttribute productAttributeOfInterest, SimulationContainer simulationContainer) throws java.lang.IllegalStateException
deriveProductInformation in class InformationSchemeinformationRequestingAgent - The agent that requests information about a product qualityproductAttributeOfInterest - The quality which an agent requests information aboutsimulationContainer - The state of the simulation at the time of inquiryjava.lang.IllegalStateExceptionpublic boolean isValid()