Package de.fu_berlin.inf.dpp.whiteboard.sxe.records

Examples of de.fu_berlin.inf.dpp.whiteboard.sxe.records.IRecord


            + " record. Target RID " + rdo.getTargetRid());
        return false;
      }

      // try to create the record
      IRecord r = rdo.getIRecord(document);

      /*
       * check if SetRecord is casual ready, this is not given if the
       * version difference is unequal 1
       */
      if (r.getRecordType() == RecordType.SET) {

        int versionDiff = ((SetRecord) r).getVersionDifference();

        if (versionDiff != 1)
          if (handleVersionDiff((SetRecord) r,
View Full Code Here


  public final void executeAndCommit(List<IRecord> records) {
    try {

      Iterator<IRecord> it = records.iterator();

      IRecord current;

      // apply one after the other
      while (it.hasNext()) {
        current = it.next();
        // and don't commit if not executed
View Full Code Here

  @Override
  public boolean isAlreadyApplied(DocumentRecord document)
      throws MissingRecordException {
    NodeRecord record = document.getRecordById(getTargetRid());
    IRecord setRecord = getIRecord(document);
    return record.getSetRecords().contains(setRecord);
  }
View Full Code Here

   *
   * @param records
   */
  protected static List<IRecord> removeTrivalRecords(List<IRecord> records) {
    Iterator<IRecord> it = records.iterator();
    IRecord tmp;

    while (it.hasNext()) {
      tmp = it.next();
      if (tmp.getRecordType() == RecordType.SET) {
        if (!((SetRecord) tmp).changesTargetState()) {
          // i.e. width, height
          it.remove();
        }
      }
View Full Code Here

   *         the layout attributes else the respective layout Attribute.
   */
  protected IRecord mergeAttribute(AttributeRecord attribute,
      List<IRecord> layout) {
    Iterator<IRecord> it = layout.iterator();
    IRecord tmp;
    while (it.hasNext()) {
      tmp = it.next();
      if (attribute.getName().equals(tmp.getTarget().getName())) {
        it.remove();
        return tmp;
      }
    }
    return attribute;
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.whiteboard.sxe.records.IRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.