public class Member extends Node implements NameBearer
| Modifier | Constructor and Description |
|---|---|
|
Member(String name)
Create a simple member.
|
|
Member(String name,
FunctionCall functionCall)
Create a member with a function call.
|
protected |
Member(String name,
FunctionCall functionCall,
Hedge hedge) |
| Modifier and Type | Method and Description |
|---|---|
Member |
add(Number x,
Number y)
Add a point to the members.
|
Member |
add(Point p)
Add a point to the members.
|
Member |
applyHedge(Hedge hedge)
Apply a hedge to the member.
|
void |
calculateEndPoints(double start,
double stop)
Adjust the point list so we have values at the end points
|
boolean |
equals(Object obj) |
Collection<Double> |
exploded()
Get the exploded values.
|
FunctionCall |
getFunctionCall()
Get the function call for this member.
|
Hedge |
getHedge()
Get the hedge for this member,
|
String |
getName()
Get the member name
|
Node.Type |
getNodeType()
Get the node type.
|
int |
getReferenceCount()
Get the member reference count.
|
int |
hashCode() |
boolean |
haveFunctionCall()
Test if we have a function call.
|
boolean |
haveHedge()
Test if we have a hedge.
|
void |
incrReferenceCount()
Increment the reference counter.
|
boolean |
isReferenced()
Indicate if this member is referenced.
|
List<Integer> |
normalized()
Get the normalied values.
|
List<Point> |
points()
The list of points.
|
int |
size()
Get the size of the point list
|
String |
toLogString() |
String |
toString() |
protected Member(String name, FunctionCall functionCall, Hedge hedge)
public Member(String name, FunctionCall functionCall)
name - the member namefunctionCall - the function callpublic Member(String name)
name - member namepublic Member applyHedge(Hedge hedge)
hedge - is the hedgepublic String getName()
getName in interface NameBearerpublic Node.Type getNodeType()
getNodeType in class Nodepublic boolean haveFunctionCall()
public FunctionCall getFunctionCall()
public boolean haveHedge()
public Hedge getHedge()
public boolean isReferenced()
public void incrReferenceCount()
public int getReferenceCount()
public Member add(Point p)
p - is the pointpublic Member add(Number x, Number y)
x - xy - ypublic int size()
public String toLogString()
public void calculateEndPoints(double start,
double stop)
start - start intervalstop - end intervalpublic Collection<Double> exploded()
Copyright © 2013–2014. All rights reserved.