public class FuzzyAgent extends Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
FuzzyAgent() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
Buyer(int i) |
static double |
CalculateCost(double constant,
int NoIteration) |
Action |
chooseAction()
this function is called after ReceiveMessage, with an Offer-action.
|
static double |
FinalDistance(double[] dist) |
static void |
FuzzyDist() |
SupportedNegotiationSetting |
getSupportedNegotiationSetting()
Indicates what negotiation settings are supported by an agent, such as
linear or non-linear utility spaces.
|
java.lang.String |
getVersion() |
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
static double[] |
Intersection(double[] xPars,
double[] yPars)
Function Intersection returns intersection of two lines
|
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did
|
protected static boolean |
Seller(int i) |
static double |
ThreshFind(int deadline,
int time,
double pick,
double stretch)
Function threshfind() which receives the current time of negotiation,
pick value and stretch value of the offers and generates the threshhold
for each offer
|
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
public Action chooseAction()
Agent
chooseAction
in class Agent
public java.lang.String getVersion()
getVersion
in class Agent
public void init()
Agent
public void ReceiveMessage(Action opponentAction)
Agent
ReceiveMessage
in class Agent
public static double CalculateCost(double constant, int NoIteration)
protected static boolean Buyer(int i)
protected static boolean Seller(int i)
public static double ThreshFind(int deadline, int time, double pick, double stretch)
public static double[] Intersection(double[] xPars, double[] yPars)
public static void FuzzyDist()
public static double FinalDistance(double[] dist)
public SupportedNegotiationSetting getSupportedNegotiationSetting()
Agent
getSupportedNegotiationSetting
in class Agent