|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractTransportable edu.umich.eecs.tac.props.AdvertiserInfo
public class AdvertiserInfo
AdvertiserInfo contains necessary game information unique to each individual advertiser. AdvertiserInfo contains:
Constructor Summary | |
---|---|
AdvertiserInfo()
Creates a new advertiser information object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks to see if the parameter configuration is the same. |
java.lang.String |
getAdvertiserId()
Returns the advertiser address. |
double |
getComponentBonus()
Returns the component bonus. |
java.lang.String |
getComponentSpecialty()
Returns the component specialty. |
int |
getDistributionCapacity()
Returns the distribution capacity. |
double |
getDistributionCapacityDiscounter()
Returns the decay rate. |
int |
getDistributionWindow()
Returns the distribution window. |
double |
getFocusEffects(QueryType queryType)
Returns the focus effect for the given query type . |
double |
getManufacturerBonus()
Returns the manufacturer bonus. |
java.lang.String |
getManufacturerSpecialty()
Returns the manufacturer specialty. |
java.lang.String |
getPublisherId()
Returns the publisher address. |
double |
getTargetEffect()
Returns the target effect. |
int |
hashCode()
Returns the hash code from the configuration parameters. |
protected void |
readWithLock(se.sics.isl.transport.TransportReader reader)
Reads the advertiser information parameters from the reader. |
void |
setAdvertiserId(java.lang.String advertiserId)
Sets the advertiser address. |
void |
setComponentBonus(double componentBonus)
Sets the component bonus. |
void |
setComponentSpecialty(java.lang.String componentSpecialty)
Sets the component specialty. |
void |
setDistributionCapacity(int distributionCapacity)
Sets the distribution capacity. |
void |
setDistributionCapacityDiscounter(double distributionCapacityDiscounter)
Sets the decay rate. |
void |
setDistributionWindow(int distributionWindow)
Sets the distribution window. |
void |
setFocusEffects(QueryType queryType,
double focusEffect)
Sets the focus effect for the given query type . |
void |
setManufacturerBonus(double manufacturerBonus)
Sets the manufacturer bonus. |
void |
setManufacturerSpecialty(java.lang.String manufacturerSpecialty)
Sets the manufacturer specialty. |
void |
setPublisherId(java.lang.String publisherId)
Sets the publisher address. |
void |
setTargetEffect(double targetEffect)
Sets the target effect. |
protected void |
writeWithLock(se.sics.isl.transport.TransportWriter writer)
Writes the advertiser information parameters to the writer. |
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable |
---|
getTransportName, isLocked, lock, lockCheck, read, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdvertiserInfo()
Method Detail |
---|
public final double getFocusEffects(QueryType queryType)
query type
.
queryType
- the query type.
query type
.public final void setFocusEffects(QueryType queryType, double focusEffect)
query type
.
queryType
- queryType the query type.focusEffect
- the focus effect.public final double getTargetEffect()
public final void setTargetEffect(double targetEffect)
targetEffect
- the target effect.public final int getDistributionWindow()
public final void setDistributionWindow(int distributionWindow)
distributionWindow
- the distribution window.public final java.lang.String getAdvertiserId()
public final void setAdvertiserId(java.lang.String advertiserId)
advertiserId
- the advertiser address.public final java.lang.String getManufacturerSpecialty()
public final void setManufacturerSpecialty(java.lang.String manufacturerSpecialty)
manufacturerSpecialty
- the manufacturer specialty.public final java.lang.String getComponentSpecialty()
public final void setComponentSpecialty(java.lang.String componentSpecialty)
componentSpecialty
- the component specialty.public final double getManufacturerBonus()
public final void setManufacturerBonus(double manufacturerBonus)
manufacturerBonus
- the manufacturer bonus.public final double getComponentBonus()
public final void setComponentBonus(double componentBonus)
componentBonus
- the component bonus.public final java.lang.String getPublisherId()
public final void setPublisherId(java.lang.String publisherId)
publisherId
- the publisher address.public final int getDistributionCapacity()
public final void setDistributionCapacity(int distributionCapacity)
distributionCapacity
- the distribution capacity.public final double getDistributionCapacityDiscounter()
public final void setDistributionCapacityDiscounter(double distributionCapacityDiscounter)
distributionCapacityDiscounter
- the decay rate.protected final void readWithLock(se.sics.isl.transport.TransportReader reader) throws java.text.ParseException
readWithLock
in class AbstractTransportable
reader
- the reader to read data from.
java.text.ParseException
- if an exception occurs when reading the parameters.protected final void writeWithLock(se.sics.isl.transport.TransportWriter writer)
writeWithLock
in class AbstractTransportable
writer
- the writer to write data to.public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to check equality
public final int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |