{
if (theConstraint == setter)
{
value = 0.0;
hasValue = false;
setter = null;
// notify the mediators
for (int i = 0; i < constraints.size(); i++)
{
IConstraint m = (IConstraint) constraints.get(i);
if (m != setter)
{
m.reset();
}
}
}
}
public void connect(IConstraint theConstraint)
{
if (constraints == null)
{
constraints = new ArrayList();
}
constraints.add(theConstraint);
}
文章来源于领测软件测试网 https://www.ltesting.net/