public override void acceptProposal(EnergyAcceptMessage message) { if (OnProposalAccepted != null) { OnProposalAccepted(message); } base.acceptProposal(message); }
public static EnergyAcceptMessage createEnergyAcceptMessage(Guid SessionID, string dest, string source, string pName, float qEnergy) { EnergyAcceptMessage message = new EnergyAcceptMessage() { header = Tools.getHeader(dest, source, SessionID), peerName = pName, energy = qEnergy }; return(message); }
public virtual void acceptProposal(EnergyAcceptMessage message) { //foo; }