|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AbleObject | +--com.ibm.able.examples.conversation.AmabBuyerLogic
This class is an example of an AbleBean that can be used in conjunction with the ABLE Jas conversation agent to engage in an Asymmetric Multi-Attribute Bilateral (AMAB) Negotitation conversation assuming the role of a buyer.
This bean can be used inside the AbleJasConversationAgent to drive an AMAB conversation as defined in the amab_cp.xml included in the examples/datafiles directory.
AbleJasConversationAgent
, Serialized FormField Summary | |
---|---|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
Fields inherited from class com.ibm.able.AbleObject |
---|
changed, chgSupport, comment, dataFlowEnabled, defaultName, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
AmabBuyerLogic()
Constructor for AmabBuyerLogic |
|
AmabBuyerLogic(java.lang.String theName)
Constructor for AmabBuyerLogic |
|
AmabBuyerLogic(java.lang.String theName,
java.lang.String theComment)
Constructor for AmabBuyerLogic |
Method Summary | |
---|---|
java.lang.Object[] |
amabBuyerLogic(java.lang.String conversationId,
java.lang.String decisionPoint,
java.lang.Object[] decisionPointData)
Decision logic connection function for the AmabBuyerLogic bean |
int |
getNumOfNegotiations()
returns the numbre of negotiations |
int |
getNumOfRounds()
Returns the number of rounds |
java.lang.String |
getStrategyParamsFile()
Returns the strategy parameters file |
int |
getStrategyType()
Returns the strategy type |
java.lang.String |
getUtilityParamsFile()
Returns the utility parameters file |
int |
getUtilityParamsType()
Returns the utility parameters file |
int |
getUtilityType()
Returns the utility type |
void |
init()
Initialize and configure the bean. |
void |
setNumOfNegotiations(int param)
Sets the number of negotiations |
void |
setNumOfRounds(int param)
Sets the number of rounds |
void |
setStrategyParamsFile(java.lang.String param)
Sets the strategy parameters file |
void |
setStrategyType(int param)
Sets the strategy type |
void |
setUtilityParamsFile(java.lang.String param)
Sets the utility parameters file |
void |
setUtilityParamsType(int param)
Sets the utility parameter type |
void |
setUtilityType(int param)
Sets the utility type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public AmabBuyerLogic() throws java.rmi.RemoteException
public AmabBuyerLogic(java.lang.String theName) throws java.rmi.RemoteException
public AmabBuyerLogic(java.lang.String theName, java.lang.String theComment) throws java.rmi.RemoteException
Method Detail |
public int getNumOfNegotiations()
public void setNumOfNegotiations(int param)
param
- the number of negotiationspublic int getNumOfRounds()
public void setNumOfRounds(int param)
param
- the number of roundspublic int getStrategyType()
AmabParams
public void setStrategyType(int param)
param
- the strategy type
AmabParams
public java.lang.String getStrategyParamsFile()
public void setStrategyParamsFile(java.lang.String param)
param
- the strategy parameters filepublic int getUtilityType()
AmabParams
public void setUtilityType(int param)
param
- the utility type
AmabParams
public int getUtilityParamsType()
param
- the utility type
AmabParams
public void setUtilityParamsType(int param)
param
- the utility parameter type
AmabParams
public java.lang.String getUtilityParamsFile()
public void setUtilityParamsFile(java.lang.String param)
file
- the utility parameter filepublic void init() throws AbleException
AbleObject
AbleState.Initiated
or
AbleState.Waiting
.
If either the AbleEventProcessing or
TimerEventProcessing flags are enabled, this method calls
AbleObject.startEnabledEventProcessing()
to start a new thread for asynchronous or timer event processing.
An AbleProperty.ProcessingState
PropertyChangeEvent is fired.
Beans overriding this method should call
super.init()
after any customization and
before returning so that the thread is started if needed
and the PropertyChangeEvent is fired.
init
in class AbleObject
AbleObject.init()
public java.lang.Object[] amabBuyerLogic(java.lang.String conversationId, java.lang.String decisionPoint, java.lang.Object[] decisionPointData)
conversationId
- the conversation identifier
decisionPoint
- the decicion point (state name) at which a deicision is to be made
decisionData
- object array representing the data used in making a decision
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |