igeo

## Class ILineAgent

- java.lang.Object
- - igeo.IObject
  - - igeo.IAgent
    - - igeo.ILineAgent

- All Implemented Interfaces:
    IDynamics, ISubobject

      public class ILineAgent
      extends IAgent

  Class of an agent with a line with start and end points.
  Author:
    Satoru Sugihara

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `ILineAgentGeo` | `line`

    - ### Fields inherited from class igeo.IAgent

      `alive, duration, interactOverridden, localDynamics, parent, targets, time`

    - ### Fields inherited from class igeo.IObject

      `attribute, dynamics, graphics, parameter, server, userData`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ILineAgent()`
    `ILineAgent(IVec rootPos)`
    `ILineAgent(IVec rootPos, IVec lineDir)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `IVec` | `dif()` alias of dir()
    `IVec` | `dir()` direction from root to pos
    `IVec` | `end()` alias of pos()
    `ILineAgent` | `hide()`
    `ICurve` | `line()`
    `IVec` | `pos()` current position, i.e.
    `IVec` | `prevPos()` alias of root()
    `IVec` | `pt1()` alias of root()
    `IVec` | `pt2()` alias of pos()
    `IVec` | `root()` previous position, i.e.
    `ILineAgent` | `show()`
    `IVec` | `start()` alias of root()

    - ### Methods inherited from class igeo.IAgent

      `addDynamics, alive, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, clr, del, del, deletDynamics, deleteDynamics, deleteDynamics, duration, duration, dynamicsNum, getDynamics, hsb, hsb, hsb, hsb, initAgent, interact, interact, layer, localDynamics, name, parent, parent, postinteract, postupdate, preinteract, preupdate, removeTarget, removeTarget, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setHSBColor, setHSBColor, setHSBColor, setHSBColor, target, target, targetNum, targets, time, time, update, updateGraphic, updateTarget, weight, weight`

    - ### Methods inherited from class igeo.IObject

      `addUserData, addUserData, alpha, alphaInt, attr, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, clr, clr, clr, clr, cp, createGraphic, defaultAttribute, deleteGraphic, dup, getAWTColor, getColor, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isValid, isVisible, layer, layer, name, red, redInt, resetGraphic, saturation, server, setColor, setColor, setColor, setColor, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, userData, userData, userData, userDataNum, visible, weight`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### line

          public ILineAgentGeo line

  - ### Constructor Detail

    - #### ILineAgent

          public ILineAgent(IVec rootPos,
                    IVec lineDir)

    - #### ILineAgent

          public ILineAgent(IVec rootPos)

    - #### ILineAgent

          public ILineAgent()

  - ### Method Detail

    - #### pos

          public IVec pos()

      current position, i.e. end point of line

    - #### end

          public IVec end()

      alias of pos()

    - #### pt2

          public IVec pt2()

      alias of pos()

    - #### root

          public IVec root()

      previous position, i.e. start/root point of line

    - #### start

          public IVec start()

      alias of root()

    - #### prevPos

          public IVec prevPos()

      alias of root()

    - #### pt1

          public IVec pt1()

      alias of root()

    - #### dir

          public IVec dir()

      direction from root to pos

    - #### dif

          public IVec dif()

      alias of dir()

    - #### line

          public ICurve line()

    - #### hide

          public ILineAgent hide()

      Overrides:
        `hide` in class `IAgent`

    - #### show

          public ILineAgent show()

      Overrides:
        `show` in class `IAgent`