}
public int getAgeCategory(Integer id) {
-
+
if( id.equals(summary) ) {
return AGE_summary;
}
public Integer getAge(Integer id) {
for( int i = 0; i < allocationDepth - 1; ++i ) {
if( id.equals(ithOldest.get(i) ) ) {
- return new Integer( i );
+ return new Integer(i);
}
}
-
+
return null;
}
-
+
public int getShadowAgeCategory(Integer id) {
if( id.equals(-summary) ) {
return SHADOWAGE_summary;
}
for( int i = 0; i < allocationDepth - 1; ++i ) {
- if( id.equals( getIthOldestShadow(i) ) ) {
+ if( id.equals(getIthOldestShadow(i) ) ) {
return SHADOWAGE_in_I;
}
}
return SHADOWAGE_notInThisSite;
}
- public Integer getShadowAge( Integer id ) {
+ public Integer getShadowAge(Integer id) {
for( int i = 0; i < allocationDepth - 1; ++i ) {
- if( id.equals( getIthOldestShadow(i) ) ) {
- return new Integer( -i );
+ if( id.equals(getIthOldestShadow(i) ) ) {
+ return new Integer(-i);
}
}
public String toString() {
return "allocSite" + id;
}
+
+ public String toStringVerbose() {
+ return "allocSite" + id + " "+type.toPrettyString();
+ }
}