public class PureInformationScheme extends InformationScheme
Constructor and Description |
---|
PureInformationScheme()
Constructor that doesn't instantiate the allKnowingEye.
|
PureInformationScheme(SimulationContainer simulationContainer)
In the PureInformationScheme all information stems from the allKnowingEye,
an InformationAgent with unlimited (maximal) information authority
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<InformationEvent> |
deriveProductInformation(ConsumerAgent informationRequestingAgent,
ProductAttribute productAttributeOfInterest,
SimulationContainer simulationContainer)
Since this scheme models perfect information, requesting information immediately gives
the true value of all product attributes of the simulation.
|
void |
provideInformation(InformationAgent contributingAgent,
Information contributedInformation,
double systemTime)
Since information is 'pure' (and thus everything is known anyways),
providing information to this scheme is of no consequence.
|
public PureInformationScheme(SimulationContainer simulationContainer)
simulationContainer
- The container the simulation runs inpublic PureInformationScheme()
public void provideInformation(InformationAgent contributingAgent, Information contributedInformation, double systemTime) throws java.lang.IllegalArgumentException
provideInformation
in class InformationScheme
contributingAgent
- 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.IllegalArgumentException
public java.util.Set<InformationEvent> deriveProductInformation(ConsumerAgent informationRequestingAgent, ProductAttribute productAttributeOfInterest, SimulationContainer simulationContainer)
deriveProductInformation
in class InformationScheme
informationRequestingAgent
- 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 inquiry