org.drools.planner.examples.cloudbalancing.domain
Class CloudBalance

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.cloudbalancing.domain.CloudBalance
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, Solution<HardAndSoftScore>

public class CloudBalance
extends AbstractPersistable
implements Solution<HardAndSoftScore>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
CloudBalance()
           
 
Method Summary
 CloudBalance cloneSolution()
          Clone will only deep copy the cloudProcessList.
 boolean equals(Object o)
           
 List<CloudComputer> getCloudComputerList()
           
 List<CloudProcess> getCloudProcessList()
           
 Collection<? extends Object> getProblemFacts()
           
 HardAndSoftScore getScore()
           
 int hashCode()
           
 void setCloudComputerList(List<CloudComputer> cloudComputerList)
           
 void setCloudProcessList(List<CloudProcess> cloudProcessList)
           
 void setScore(HardAndSoftScore score)
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
compareTo, getId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CloudBalance

public CloudBalance()
Method Detail

getCloudComputerList

public List<CloudComputer> getCloudComputerList()

setCloudComputerList

public void setCloudComputerList(List<CloudComputer> cloudComputerList)

getCloudProcessList

public List<CloudProcess> getCloudProcessList()

setCloudProcessList

public void setCloudProcessList(List<CloudProcess> cloudProcessList)

getScore

public HardAndSoftScore getScore()
Specified by:
getScore in interface Solution<HardAndSoftScore>

setScore

public void setScore(HardAndSoftScore score)
Specified by:
setScore in interface Solution<HardAndSoftScore>

getProblemFacts

public Collection<? extends Object> getProblemFacts()
Specified by:
getProblemFacts in interface Solution<HardAndSoftScore>

cloneSolution

public CloudBalance cloneSolution()
Clone will only deep copy the cloudProcessList.

Specified by:
cloneSolution in interface Solution<HardAndSoftScore>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.