Пример #1
0
  @Override
  public void applyTo(SubSystem s) {
    cdt = c / s.getDt();

    s.addToA(aPin, aPin, cdt);
    s.addToA(aPin, bPin, -cdt);
    s.addToA(bPin, bPin, cdt);
    s.addToA(bPin, aPin, -cdt);
  }
Пример #2
0
 @Override
 public void addedTo(SubSystem s) {
   super.addedTo(s);
   s.addProcess(this);
 }
Пример #3
0
 @Override
 public void simProcessI(SubSystem s) {
   double add = (s.getXSafe(aPin) - s.getXSafe(bPin)) * cdt;
   s.addToI(aPin, add);
   s.addToI(bPin, -add);
 }