|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.bml.core.BMLElement
hmi.bml.core.Behaviour
public abstract class Behaviour
This class is a superclass for all behaviors. It has no representation in BML. It holds common variables. Note that not all elements of BML have this class as superclass: there are tags that are not behaviors.
| Field Summary | |
|---|---|
Behaviour |
descBehaviour
|
private int |
descPriority
|
private ArrayList<Description> |
descriptions
|
private SyncPoint |
start
|
private ArrayList<SyncPoint> |
syncPoints
|
float |
timeOffset
|
| Fields inherited from class hmi.bml.core.BMLElement |
|---|
bmlId, id |
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
Behaviour()
|
|
| Method Summary | |
|---|---|
void |
addDefaultSyncPoints()
|
void |
addSyncPoint(SyncPoint syncPoint)
|
void |
addSyncPoints(List<SyncPoint> points)
|
StringBuilder |
appendAttributeString(StringBuilder buf)
Appends a String to buf that encodes the attributes for the XML encoding. |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
constructConstraints(String bbId,
BMLParser scheduler)
|
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes all attributes. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
abstract float |
getFloatParameterValue(String name)
|
SyncPoint |
getStartSyncPoint()
|
abstract String |
getStringParameterValue(String name)
|
ArrayList<SyncPoint> |
getSyncPoints()
|
boolean |
hasContent()
returns whether the XML encoding should have an contents part, or should be an empty element tag. |
void |
removeSyncPoints(List<SyncPoint> points)
|
boolean |
satisfiesConstraint(String name,
String value)
|
abstract boolean |
specifiesParameter(String name)
Does the behavior prescribe a value for parameter with name name? |
| Methods inherited from class hmi.bml.core.BMLElement |
|---|
ensureDecodeProgress, getXMLTag, registerElementsById, xmlTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ArrayList<SyncPoint> syncPoints
private ArrayList<Description> descriptions
private SyncPoint start
public Behaviour descBehaviour
private int descPriority
public float timeOffset
| Constructor Detail |
|---|
public Behaviour()
| Method Detail |
|---|
public abstract float getFloatParameterValue(String name)
public abstract String getStringParameterValue(String name)
public abstract boolean specifiesParameter(String name)
public boolean satisfiesConstraint(String name,
String value)
public SyncPoint getStartSyncPoint()
public void addDefaultSyncPoints()
public void addSyncPoint(SyncPoint syncPoint)
public void removeSyncPoints(List<SyncPoint> points)
public void addSyncPoints(List<SyncPoint> points)
public ArrayList<SyncPoint> getSyncPoints()
public StringBuilder appendAttributeString(StringBuilder buf)
XMLStructureAdapter
appendAttributeString in class BMLElement
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttributes in class BMLElement
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
XMLStructureAdapter
appendContent in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOExceptionpublic boolean hasContent()
XMLStructureAdapter
hasContent in class XMLStructureAdapter
public void constructConstraints(String bbId,
BMLParser scheduler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||