public class User extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
calculateCap() |
boolean |
canUseBonus(int order)
Can I use more 1 more share of this size?
UIMA-4065
|
boolean |
equals(Object o) |
Comparator<org.apache.uima.ducc.rm.scheduler.IEntity> |
getApportionmentSorter() |
int[] |
getGivenByOrder() |
String |
getName()
public String getId()
{
return id;
}
|
int |
getPureFairShare() |
int |
getShareWealth() |
int |
getShareWeight()
Currently, all users are equal.
|
long |
getTimestamp() |
int[] |
getWantedByOrder() |
int |
hashCode() |
void |
initWantedByOrder(ResourceClass rc) |
void |
setGivenByOrder(int[] gbo) |
void |
setPureFairShare(int pfs) |
void |
setShareWealth(int w) |
void |
subtractWealth(int w) |
String |
toString() |
public User(String name)
public long getTimestamp()
public int getShareWeight()
public void initWantedByOrder(ResourceClass rc)
public void setPureFairShare(int pfs)
public int getPureFairShare()
public int[] getWantedByOrder()
public void setGivenByOrder(int[] gbo)
public int[] getGivenByOrder()
public void setShareWealth(int w)
public int getShareWealth()
public void subtractWealth(int w)
public int calculateCap()
public boolean canUseBonus(int order)
order - The size of the available share. Must be an exact match because the
offerer has already done all reasonable splitting and will have a better
use for it if I can't take it.
The decision is based on the wbo/gbo arrays that the offer has been building up
just before asking this question.public String getName()
public Comparator<org.apache.uima.ducc.rm.scheduler.IEntity> getApportionmentSorter()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.