hsr.smart
Class HSRAvatarSmart

java.lang.Object
  extended by hsr.smart.HSRAvatarSmart
All Implemented Interfaces:
scg.AvatarI

public class HSRAvatarSmart
extends java.lang.Object
implements scg.AvatarI

Representation of HSRAvatar


Constructor Summary
HSRAvatarSmart()
          Construct a(n) HSRAvatar Instance
HSRAvatarSmart(scg.Config cfg)
          Constructor to be called during registration where you supply config
 
Method Summary
 boolean equals(java.lang.Object o)
          Is the given object Equal to this HSRAvatar?
 edu.neu.ccs.demeterf.lib.List<scg.OpposeAction> oppose(edu.neu.ccs.demeterf.lib.List<scg.Claim> claimsToBeOpposed)
          Random oppose method - randomly agrees, refutes or strengthens by a factor of 1
 edu.neu.ccs.demeterf.lib.List<scg.Claim> propose(edu.neu.ccs.demeterf.lib.List<scg.Claim> forbiddenClaims)
          DataType: Instance Instance is a, (int, int) - (n, k)
 scg.InstanceI provide(scg.Claim claimToBeProvided)
          providing instance - in HSR this is trivial as the instanceSet is singleton
 scg.SolutionI solve(scg.SolveRequest solveRequest)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSRAvatarSmart

public HSRAvatarSmart()
Construct a(n) HSRAvatar Instance


HSRAvatarSmart

public HSRAvatarSmart(scg.Config cfg)
Constructor to be called during registration where you supply config

Method Detail

equals

public boolean equals(java.lang.Object o)
Is the given object Equal to this HSRAvatar?

Overrides:
equals in class java.lang.Object

propose

public edu.neu.ccs.demeterf.lib.List<scg.Claim> propose(edu.neu.ccs.demeterf.lib.List<scg.Claim> forbiddenClaims)
DataType: Instance Instance is a, (int, int) - (n, k)

Specified by:
propose in interface scg.AvatarI

oppose

public edu.neu.ccs.demeterf.lib.List<scg.OpposeAction> oppose(edu.neu.ccs.demeterf.lib.List<scg.Claim> claimsToBeOpposed)
Random oppose method - randomly agrees, refutes or strengthens by a factor of 1

Specified by:
oppose in interface scg.AvatarI

provide

public scg.InstanceI provide(scg.Claim claimToBeProvided)
providing instance - in HSR this is trivial as the instanceSet is singleton

Specified by:
provide in interface scg.AvatarI

solve

public scg.SolutionI solve(scg.SolveRequest solveRequest)
Specified by:
solve in interface scg.AvatarI