hmi.bml.parser
Class SyncRef

java.lang.Object
  extended by hmi.bml.parser.SyncRef

public class SyncRef
extends Object

SyncRef String parser

Author:
welberge

Field Summary
 String bbId
           
 int iteration
           
 double offset
           
 String sourceId
           
 String syncId
           
 
Constructor Summary
SyncRef(String bbId, String syncRef)
          Parses a reference to a synchronization point.
 
Method Summary
 boolean equals(Object s)
          SyncRefs are equal if their sourceId, syncId, offset and strokeNr (if syncId=="stroke") match
 int hashCode()
           
private  String parseOffset(String syncRef)
          Gets the offset from a syncRef String
 String toString()
          Get the String representation of the SyncRef
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

bbId

public String bbId

sourceId

public String sourceId

syncId

public String syncId

iteration

public int iteration

offset

public double offset
Constructor Detail

SyncRef

public SyncRef(String bbId,
               String syncRef)
        throws InvalidSyncRefException
Parses a reference to a synchronization point. offset |(source_id:sync_id [ws* (+|-)ws*offset] )|(source_id:stroke:stroke_id[ws*(+|-)ws*offset]) source_id : IDREF | self | bml offset: float stroke_id: unsigned integer

Parameters:
syncRef -
Throws:
InvalidSyncRefException
Method Detail

parseOffset

private String parseOffset(String syncRef)
                    throws InvalidSyncRefException
Gets the offset from a syncRef String

Returns:
Throws:
InvalidSyncRefException

equals

public boolean equals(Object s)
SyncRefs are equal if their sourceId, syncId, offset and strokeNr (if syncId=="stroke") match

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Get the String representation of the SyncRef

Overrides:
toString in class Object