com.buglabs.osgi.obr
Class SortableResourceContainer

java.lang.Object
  extended by com.buglabs.osgi.obr.SortableResourceContainer
All Implemented Interfaces:
java.lang.Comparable

public class SortableResourceContainer
extends java.lang.Object
implements java.lang.Comparable


Constructor Summary
SortableResourceContainer(org.osgi.service.obr.Resource res, org.osgi.framework.BundleContext c)
           
 
Method Summary
 int compareTo(java.lang.Object other)
           
 boolean equals(java.lang.Object other)
           
 int getCost()
           
 org.osgi.service.obr.Resource getResource()
           
 int getSatisfiedCount()
           
 int getSize()
           
 void incrementRequirementCount()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortableResourceContainer

public SortableResourceContainer(org.osgi.service.obr.Resource res,
                                 org.osgi.framework.BundleContext c)
Method Detail

getResource

public org.osgi.service.obr.Resource getResource()

getSize

public int getSize()

getSatisfiedCount

public int getSatisfiedCount()

getCost

public int getCost()

incrementRequirementCount

public void incrementRequirementCount()

compareTo

public int compareTo(java.lang.Object other)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object